gcc 导入错误:/lib/x86_64-linux-gnu/libstdc++.so.6:未找到版本“GLIBCXX_3.4.29”

vfh0ocws  于 2023-10-19  发布在  Linux
关注(0)|答案(1)|浏览(222)

我得到了错误:

(genslm) smrutip@dgx1:~/smruti_project/pyro-cov$ make analyze 
python scripts/mutrans.py --vary-holdout Traceback (most recent call last): File "/raid/home/smrutip/smruti_project/pyro-cov/scripts/mutrans.py", line 16, in from pyrocov import mutrans, pangolin, sarscov2 File "/raid/home/smrutip/smruti_project/pyro-cov/pyrocov/mutrans.py", line 37, in import pyrocov.geo File "/raid/home/smrutip/smruti_project/pyro-cov/pyrocov/geo.py", line 12, in import pandas as pd File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/init.py", line 48, in from pandas.core.api import ( File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/api.py", line 47, in from pandas.core.groupby import ( File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/groupby/init.py", line 1, in from pandas.core.groupby.generic import ( File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/groupby/generic.py", line 77, in from pandas.core.frame import DataFrame File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/frame.py", line 182, in from pandas.core.generic import NDFrame File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/generic.py", line 179, in from pandas.core.window import ( File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/window/init.py", line 1, in from pandas.core.window.ewm import ( File "/raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/core/window/ewm.py", line 11, in import pandas._libs.window.aggregations as window_aggregations 
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /raid/home/smrutip/anaconda3/envs/genslm/lib/python3.9/site-packages/pandas/_libs/window/aggregations.cpython-39-x86_64-linux-gnu.so) make: *** [Makefile:63: analyze] Error 1

但无法使用任何解决方案解决它。由于权限问题,我不应该使用sudo命令。谁能告诉我如何使用conda解决这个问题?
我期待这个“做分析”应该工作,并给予结果

hk8txs48

hk8txs481#

在我的例子中,这个错误是由于不同的gccg++版本而发生的。请通过以下方式检查您的版本:

gcc --version
g++ --version

更新并拥有相同的gccg++版本解决了这个问题。要在conda环境中安装它们,请使用以下命令:安装gcc:

conda install -c conda-forge gcc

安装g++:

conda install -c conda-forge gxx

我希望这对你有帮助。谢谢你,谢谢

相关问题