【问题标题】:Error when installing github module via pip通过 pip 安装 github 模块时出错
【发布时间】:2015-09-25 19:05:02
【问题描述】:

我正在尝试使用 pip 从 github 下载一个 python 模块,但我似乎在下载时遇到了问题:

00000@ubuntu-00000:~/Desktop/Python/Blockchain.data$ pip install git+https://github.com/luke-jr/eloipool.git
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting git+https://github.com/luke-jr/eloipool.git
  Cloning https://github.com/luke-jr/eloipool.git to /tmp/pip-f159a1wz-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 18, in <module>
      File "/home/00000/anaconda3/lib/python3.4/tokenize.py", line 438, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-f159a1wz-build/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-f159a1wz-build

了解为什么没有安装?

【问题讨论】:

  • 本项目没有提供setup.py,所以不能通过pip安装

标签: python github pip anaconda


【解决方案1】:

我最近在安装 selenium 时遇到了类似的问题。首先升级你的画中画。然后尝试安装您尝试安装的任何内容。

【讨论】:

    【解决方案2】:

    模块不包含 setup.py 文件。

    最后做了:

    git clone https://ADDRESS .
    

    【讨论】: