【问题标题】:error while installing programs from github从 github 安装程序时出错
【发布时间】:2018-11-05 22:05:56
【问题描述】:

我正在尝试安装一些程序。我将它们全部放在一个名为requirements.txt 的文本文件中。 我在我的 Ubuntu 机器上使用以下命令运行此文件:

pip install -r requirements.txt

但它给出了这个错误:

Obtaining bx-python from git+git://github.com/eranroz/bx-python#egg=bx-python (from -r requirements.txt (line 7))
  Cloning git://github.com/eranroz/bx-python to ./src/bx-python
fatal: unable to connect to github.com:
github.com[0: 140.82.118.3]: errno=Connection timed out
github.com[1: 140.82.118.4]: errno=Connection timed out

Command "git clone -q git://github.com/eranroz/bx-python /DATA/ali/src/bx-python" failed with error code 128 in None

你知道我该如何解决这个问题吗?

这是我在requirements.txt 中的内容:

numpy==1.13.3
pandas==0.23.4
scipy==1.0.0
Cython==0.28.5
scikit-learn==0.19.1
hmm_kit
-e git://github.com/eranroz/bx-python#egg=bx-python

【问题讨论】:

    标签: python shell ubuntu


    【解决方案1】:

    关键是:

    fatal: unable to connect to github.com:
    github.com[0: 140.82.118.3]: errno=Connection timed out
    

    所以看起来您正在超时访问 GitHub。可能是 GitHub 的速度很慢,但更有可能是有什么东西阻碍了你到达那里。

    您可以使用网络浏览器、curl、wget 等从该机器访问 github.com 吗?

    【讨论】:

    • 嗯,如果您将需求条目更改为 -e git+https://github.com/eranroz/bx-python#egg=bx-python,会发生什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-03
    • 1970-01-01
    • 2018-09-06
    • 2021-05-12
    • 1970-01-01
    相关资源
    最近更新 更多