我尝试了pip install openbabel --log log_file,得到了以下错误:
Collecting openbabel
Using cached openbabel-2.4.1.tar.gz (74 kB)
Building wheels for collected packages: openbabel
Building wheel for openbabel (setup.py) ... error
ERROR: Failed building wheel for openbabel
Running setup.py clean for openbabel
Failed to build openbabel
Installing collected packages: openbabel
Running setup.py install for openbabel ... error
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/59/zn1rl7b13tqc7t2njskzp6th0000gn/T/pip-install-d2aqd_xf/openbabel/setup.py'"'"'; __file__='"'"'/private/var/folders/59/zn1rl7b13tqc7t2njskzp6th0000gn/T/pip-install-d2aqd_xf/openbabel/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/59/zn1rl7b13tqc7t2njskzp6th0000gn/T/pip-record-i_0qytcj/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/openbabel Check the logs for full command output.这里的pip是pip3的别名。
日志文件是here (我不确定你是否能读懂,这是我第一次分享文件)
注意:几天前我在我的电脑上打开了第二个用户,我不知道它是如何影响事情的,但也许这就是原因。
我使用的是Mac OS Catalina。
发布于 2020-05-21 01:06:51
所以我找到了一种比手动构建openbabel简单得多的方法。适用于openbabel3的brew install openbabel
查看链接:http://openbabel.org/wiki/Category:Installation
发布于 2020-05-06 23:52:59
快速查看日志文件,它看起来不会安装,因为它找不到适用于Mac的版本,只适用于Windows,但是以下内容可能有助于解决此问题:How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3
https://stackoverflow.com/questions/61639229
复制相似问题