python-3.x - 用 pip 安装 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 的别名。
日志文件在这里(不知道你能不能看懂,这是我第一次分享文件)
注意:几天前我在我的电脑上打开了第二个用户,我不知道它是如何影响事情的,但也许这就是原因。
我正在使用 Mac OS Catalina。
解决方案
快速查看日志文件,它似乎无法安装,因为它找不到适用于 Mac OS 的版本,仅适用于 Windows,但以下可能有助于解决此问题:How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3
推荐阅读
- javascript - 如何将共享文件夹保存到 Google Drive 的用户帐户
- gitlab - 如何为分支主节点上的标记提交触发 GitLab 管道?
- java - 为什么 IndexOutOfBoundsException 现在在 Java 16 中有一个带有长索引的构造函数作为参数?
- c# - UIAutomation 元素为远程桌面连接上的边界矩形返回错误值
- c# - SharePoint 客户端 ID 和密钥续订不起作用
- php - 单击链接后关闭移动菜单
- google-cloud-platform - 在 GCP 中为项目设置共享服务
- ios - 免费试用期后应用内购买一次性付款
- python - python pyserial 无法在 COM 端口建立与硬件的连接
- python - BadZipFile 仅在我使用变量时出错