解决ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29‘ not found

参考链接
https://blog.csdn.net/qq_30653631/article/details/107620137

https://blog.csdn.net/BetrayFree/article/details/137690412

https://blog.csdn.net/weixin_45942927/article/details/134028773

主要指令

sudo find / -name "libstdc++.so.6*"


sudo cp /home/u2023110576/.conda/envs/my_alignn/lib/libstdc++.so.6.0.32 /usr/lib/x86_64-linux-gnu/

sudo rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6

 sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.32 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
u2023110576@n1:~$ source activate
(base) u2023110576@n1:~$ source activate my_alignn
(my_alignn) u2023110576@n1:~$ sudo find / -name "libstdc++.so.6*"
/home/u2023110576/cuda/cudatoolkit12.0/nsight-compute-2022.4.0/host/linux-desktop-glibc_2_11_3-x64/libstdc++.so.6
/home/u2023110576/cuda/cudatoolkit12.0/nsight-systems-2022.4.2/host-linux-x64/libstdc++.so.6
/home/u2023110576/cuda/CudaToolkit11.8/nsight-systems-2022.4.2/host-linux-x64/libstdc++.so.6
/home/u2023110576/cuda/CudaToolkit11.8/nsight-compute-2022.3.0/host/linux-desktop-glibc_2_11_3-x64/libstdc++.so.6
/home/u2023110576/.conda/envs/alignn/lib/libstdc++.so.6
/home/u2023110576/.conda/envs/alignn/lib/libstdc++.so.6.0.29
/home/u2023110576/.conda/envs/my_alignn/lib/libstdc++.so.6.0.32
/home/u2023110576/.conda/envs/my_alignn/lib/libstdc++.so.6
/home/u2023110576/.conda/pkgs/libstdcxx-ng-13.2.0-h7e041cc_3/lib/libstdc++.so.6.0.32
/home/u2023110576/.conda/pkgs/libstdcxx-ng-13.2.0-h7e041cc_3/lib/libstdc++.so.6
/home/u2023110576/.conda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6.0.29
/home/u2023110576/.conda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6
/opt/conda/envs/py310/lib/libstdc++.so.6
/opt/conda/envs/py310/lib/libstdc++.so.6.0.29
/opt/conda/envs/py36/lib/libstdc++.so.6
/opt/conda/envs/py36/lib/libstdc++.so.6.0.29
/opt/conda/envs/py37/lib/libstdc++.so.6
/opt/conda/envs/py37/lib/libstdc++.so.6.0.29
/opt/conda/envs/py38/lib/libstdc++.so.6
/opt/conda/envs/py38/lib/libstdc++.so.6.0.29
/opt/conda/envs/py39/lib/libstdc++.so.6
/opt/conda/envs/py39/lib/libstdc++.so.6.0.29
/opt/conda/envs/pytorch-1.8/lib/libstdc++.so.6
/opt/conda/envs/pytorch-1.8/lib/libstdc++.so.6.0.29
/opt/conda/lib/libstdc++.so.6
/opt/conda/lib/libstdc++.so.6.0.29
/opt/conda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6
/opt/conda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6.0.29
find: ‘/proc/tty/driver’: Permission denied
find: ‘/proc/8/task/8/fd’: Permission denied
find: ‘/proc/8/task/8/fdinfo’: Permission denied
find: ‘/proc/8/task/8/ns’: Permission denied
find: ‘/proc/8/task/9/fd’: Permission denied
find: ‘/proc/8/task/9/fdinfo’: Permission denied
find: ‘/proc/8/task/9/ns’: Permission denied
find: ‘/proc/8/fd’: Permission denied
find: ‘/proc/8/map_files’: Permission denied
find: ‘/proc/8/fdinfo’: Permission denied
find: ‘/proc/8/ns’: Permission denied
find: ‘/proc/27/map_files’: Permission denied
find: ‘/proc/30/map_files’: Permission denied
find: ‘/proc/71/map_files’: Permission denied
find: ‘/proc/97/map_files’: Permission denied
find: ‘/proc/101/map_files’: Permission denied
find: ‘/proc/113/map_files’: Permission denied
find: ‘/proc/124/map_files’: Permission denied
find: ‘/proc/4086/map_files’: Permission denied
find: ‘/proc/4185/map_files’: Permission denied
find: ‘/proc/4198/map_files’: Permission denied
find: ‘/proc/4410/map_files’: Permission denied
find: ‘/proc/7492/map_files’: Permission denied
find: ‘/proc/7504/map_files’: Permission denied
find: ‘/proc/9745/map_files’: Permission denied
find: ‘/proc/9752/map_files’: Permission denied
find: ‘/proc/12578/map_files’: Permission denied
find: ‘/proc/12725/map_files’: Permission denied
find: ‘/proc/12821/map_files’: Permission denied
find: ‘/proc/12828/map_files’: Permission denied
find: ‘/proc/12867/map_files’: Permission denied
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
(my_alignn) u2023110576@n1:~$ 
(my_alignn) u2023110576@n1:~$ sudo cp /home/u2023110576/.conda/envs/my_alignn/lib/libstdc++.so.6.0.32 /usr/lib/x86_64-linux-gnu/
(my_alignn) u2023110576@n1:~$ sudo rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(my_alignn) u2023110576@n1:~$  sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.32 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(my_alignn) u2023110576@n1:~$ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值