【问题标题】:Error w pip install openbabel: Failed to build openbabel错误 w pip install openbabel:无法构建 openbabel
【发布时间】:2017-08-24 01:45:18
【问题描述】:

请原谅,我是化学家,而不是程序员(但我正在努力)。我还处于初级水平。

我要在我的 Mac 上为一个项目安装 openbabel,但安装时遇到问题。

我在做

pip install openbabel

我收到一个错误:

Collecting openbabel
  Using cached openbabel-2.4.1.tar.gz
Building wheels for collected packages: openbabel
  Running setup.py bdist_wheel for openbabel ... error  

The error continues here.

我的研究顾问让我安装 anaconda 来解决我的问题。 which pip 产生 /Users/melanie/anaconda/bin/pip,所以我觉得我很好。

使用 Python 3.6.1

有什么建议吗?感谢您提供的任何帮助。

【问题讨论】:

    标签: python macos anaconda


    【解决方案1】:

    您的研究顾问已经告诉您解决方案。

    当您使用Anaconda 时,请尝试conda install -c openbabel openbabel。然后你就完成了。

    【讨论】:

      【解决方案2】:

      不幸的是,问题在 2022 年仍然存在。Open Babel github repo 上有一个未解决的问题。 conda 安装并不总是理想的解决方案,即当您使用 Google Colab 时。

      【讨论】:

        猜你喜欢
        • 2022-10-18
        • 2020-09-07
        • 2021-04-08
        • 2015-11-04
        • 2021-08-04
        • 2014-04-03
        • 1970-01-01
        • 1970-01-01
        • 2017-06-28
        相关资源
        最近更新 更多