【问题标题】:GOOGLE COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command outputGOOGLE COLAB 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出
【发布时间】:2021-02-18 02:01:07
【问题描述】:

我正在尝试在 google colab 中安装早期版本的 inferpy,但我不断收到此错误。我可以毫无错误地安装最新版本。我尝试了适用于本地机器的解决方案,但没有一个适合我。

我的代码:

!pip install inferpy==0.0.3

我得到的错误:

Using cached https://files.pythonhosted.org/packages/c3/d7/825b509d4067e09571f58a3ab86bdf0672134e67c51cb126c2e0d3a47127/inferpy-0.0.3.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

任何想法如何解决这个问题? 谢谢

【问题讨论】:

  • 这是错误ERROR: inferpy-0.0.3.tar.gz is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).。我建议您使用较新的版本。

标签: python pip


【解决方案1】:

根据project homepage,此旧版本仅适用于:

  • Python :: 2.7
  • Python :: 3.4

来源:https://pypi.org/project/inferpy/0.0.3/

您的 colab 笔记本很可能在较新版本的 python 3 中,因此出现错误,(我在尝试使用 unirest 时遇到了类似的问题,这取决于 poster在 Python2 中工作)

您可能拥有的一个选项是this post 中描述的选项:

Is there a way to use Python 3.5 instead of 3.6?

【讨论】:

    猜你喜欢
    • 2020-02-17
    • 1970-01-01
    • 2020-03-03
    • 2021-03-31
    • 2021-09-03
    • 2020-04-07
    • 1970-01-01
    • 2021-04-15
    • 2020-04-12
    相关资源
    最近更新 更多