报错
ImportError: /home/xxx/miniconda3/envs/mmpose3d/bin/…/lib/libstdc++.so.6: version GLIBCXX_3.4.30' not found(requiredby/home/xxx/miniconda3/envs/mmpose3d/lib/python3.10/site-packages/torch/lib/libtorch_python.so)
通用解决方法:x86 linux or jetson 系列
第一步:
- which conda
·找到conda路径
假设是:/home/xxx/miniconda3/envs/mmpose3d
- find /home/xxx/miniconda3/envs/mmpose3d -name libstdc++.so.*
找到conda环境下 libstdc++.so.的路径
/home/xxx/miniconda3/envs/mmpose3d/bin/…/lib/libstdc++.so.6
- find /usr -name libstdc++.so.*
找到系统环境下的路径:
/usr/lib/aarch64-linux-gnu/libstdc++.so.6
解决方案
rm /home/xxx/miniconda3/envs/mmpose3d/bin/…/lib/libstdc++.so.6
ln -s /usr/lib/aarch64-linux-gnu/libstdc++.so.6 /home/xxx/miniconda3/envs/mmpose3d/bin/…/lib/libstdc++.so.6