解决ImportError: ......open3d/linux/open3d.so: undefined symbol: _Py_ZeroStruct

环境:Linux python3.8

报错:

Traceback (most recent call last):
  File "", line 1, in 
  File "/home/peter/anaconda3/lib/python3.6/site-packages/open3d/__init__.py", line 9, in 
    from open3d.linux import *
  File "/home/peter/anaconda3/lib/python3.6/site-packages/open3d/linux/__init__.py", line 7, in 
    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==

参考链接:https://github.com/intel-isl/Open3D/issues/488

你可能感兴趣的:(解决ImportError: ......open3d/linux/open3d.so: undefined symbol: _Py_ZeroStruct)