Python 3.x 使用pip安装openbabel3

Python 3.x 使用pip安装openbabel3,python-3.x,pip,openbabel,Python 3.x,Pip,Openbabel,我尝试了pip安装openbabel--log log\u文件,但出现以下错误: 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 openb

我尝试了
pip安装openbabel--log log\u文件
,但出现以下错误:

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的别名

日志文件是(我不确定您是否可以阅读,这是我第一次共享文件)

注意:几天前,我在我的电脑上打开了第二个用户,我不知道它是如何影响事情的,但也许这就是原因


我正在使用Mac OS Catalina。

通过快速查看日志文件,它看起来不会安装,因为它找不到Mac OS的版本,仅适用于Windows,但是以下可能是解决此问题的有用方法:

因此我找到了一种比手动构建openbabel简单得多的方法
brew安装openbabel
适用于
openbabel3

检查链接: