首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用pip安装openbabel3

使用pip安装openbabel3
EN

Stack Overflow用户
提问于 2020-05-06 23:37:07
回答 2查看 461关注 0票数 0

我尝试了pip install openbabel --log log_file,得到了以下错误:

代码语言:javascript
复制
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。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-05-21 01:06:51

所以我找到了一种比手动构建openbabel简单得多的方法。适用于openbabel3brew install openbabel

查看链接:http://openbabel.org/wiki/Category:Installation

票数 0
EN

Stack Overflow用户

发布于 2020-05-06 23:52:59

快速查看日志文件,它看起来不会安装,因为它找不到适用于Mac的版本,只适用于Windows,但是以下内容可能有助于解决此问题:How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61639229

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档