解决ImportError: ......open3d/linux/open3d.so: undefined symbol: _Py_ZeroStruct
程序员文章站
2022-05-26 23:40:46
...
环境:Linux python3.8
报错:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/peter/anaconda3/lib/python3.6/site-packages/open3d/__init__.py", line 9, in <module>
from open3d.linux import *
File "/home/peter/anaconda3/lib/python3.6/site-packages/open3d/linux/__init__.py", line 7, in <module>
globals().update(importlib.import_module('open3d.linux.open3d').__dict__)
File "/home/peter/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /home/peter/anaconda3/lib/python3.6/site-packages/open3d/linux/open3d.so: undefined symbol: _Py_ZeroStruct
解决方法:
卸载 open3d-python ,使用 conda 安装 open3d 。
pip uninstall open3d-python
conda install -c open3d-admin open3d==<version number>