使用 pip 安装 openbabel3
installing openbabel3 with pip
我尝试了 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。
快速查看日志文件,它似乎无法安装,因为它无法找到 Mac OS 的版本,仅适用于 Windows,但以下可能是作为解决方法很有用:How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3
所以我找到了一个比手动构建openbabel简单得多的方法。 brew install openbabel
适用于 openbabel3
我尝试了 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。
快速查看日志文件,它似乎无法安装,因为它无法找到 Mac OS 的版本,仅适用于 Windows,但以下可能是作为解决方法很有用:How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3
所以我找到了一个比手动构建openbabel简单得多的方法。 brew install openbabel
适用于 openbabel3