报错OSError: libstdc++.so.6: version `CXXABI_1.3 not found

(pytorch_gpu) huifeimao@CN-SHA-0132:~/Desktop/work/python_project/23_1004_python_ros/ObjectInHand-Dataset/DataExtraction/src/data_extraction/scripts$ python extract_data.py 
Traceback (most recent call last):
  File "extract_data.py", line 14, in <module>
    import open3d as o3d
  File "/home/huifeimao/anaconda3/envs/pytorch_gpu/lib/python3.8/site-packages/open3d/__init__.py", line 64, in <module>
    _CDLL(str(next((_Path(__file__).parent / 'cpu').glob('pybind*'))))
  File "/home/huifeimao/anaconda3/envs/pytorch_gpu/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/huifeimao/anaconda3/envs/pytorch_gpu/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /home/huifeimao/anaconda3/envs/pytorch_gpu/lib/python3.8/site-packages/open3d/cpu/pybind.cpython-38-x86_64-linux-gnu.so)

排查过程

cd /home/huifeimao/anaconda3/envs/pytorch_gpu/bin/../lib/
ls | grep libstdc++.so.6

在这里插入图片描述

sudo strings libstdc++.so.6.0.26 |grep CXXABI

报错OSError: libstdc++.so.6: version `CXXABI_1.3 not found_第1张图片

ls -l |grep "libstdc++*"

报错OSError: libstdc++.so.6: version `CXXABI_1.3 not found_第2张图片

解决办法

cd ~/anaconda3/envs/pytorch_gpu/lib
sudo rm -rf libstdc++.so
sudo ln -s libstdc++.so.6.0.26 libstdc++.so.6

参考:https://blog.csdn.net/m0_38017273/article/details/125440351

你可能感兴趣的:(ROS,ros)