我正在开发一个网络应用程序 django,当我安装 openbabel 并尝试导入 pybel 时出现错误
我使用的venv
是在执行所有这些命令时激活的
我像这样安装openbabel:
sudo apt-get install python-openbabel
我也试过:
sudo apt-get install openbabel libopenbabel-dev swig
然后我做了:
pip install openbabel
之后,我尝试导入 pybel(在导入 openbabel 之后)
这是实际结果:
>>> import pybel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/etudiant/QuChemPedIA/QuChemPedIAProject/venv/lib/python3.5/site-packages/pybel.py", line 94, in <module>
descs = _getpluginnames("descriptors")
File "/home/etudiant/QuChemPedIA/QuChemPedIAProject/venv/lib/python3.5/site-packages/pybel.py", line 84, in _getpluginnames
return [x.split()[0] for x in plugins]
File "/home/etudiant/QuChemPedIA/QuChemPedIAProject/venv/lib/python3.5/site-packages/pybel.py", line 84, in <listcomp>
return [x.split()[0] for x in plugins]
IndexError: list index out of range
请问有什么帮助吗?