【问题标题】:Private Github python repo cannot be installed无法安装私有 Github python repo
【发布时间】:2019-10-27 07:06:29
【问题描述】:

我想从私有存储库安装this Python package。

我尝试了多种方式解决here。

但是,我收到以下错误:

1.

MakotonoMacBook-ea:~ makotomiyazaki$ pip install https://github.com/nealjean/coreg.git

Collecting https://github.com/nealjean/coreg.git
  Downloading https://github.com/nealjean/coreg.git
 \ 102kB 955kB/s
ERROR: Cannot unpack file /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-unpack-hl6ejff8/coreg.git 
(downloaded from /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-0xy7h6hv, content-type: text/html; charset=utf-8); 
cannot detect archive format
ERROR: Cannot determine archive format of /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-0xy7h6hv

2.

MakotonoMacBook-ea:~ makotomiyazaki$ pip install git+https://github.com/nealjean/coreg

Collecting git+https://github.com/nealjean/coreg
Cloning https://github.com/nealjean/coreg to /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-zvs4cg3t
Running command git clone -q https://github.com/nealjean/coreg /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-zvs4cg3t
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/makotomiyazaki/anaconda3/lib/python3.6/tokenize.py", line 452, in open
    buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-zvs4cg3t/setup.py'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/_f/ds87hcrj1d3023gdtg72nb7w0000gn/T/pip-req-build-zvs4cg3t/

3.

MakotonoMacBook-ea:~ makotomiyazaki$ pip install -e git+https://github.com/nealjean/coreg
ERROR: Could not detect requirement name for 'git+https://github.com/nealjean/coreg', 
please specify one with #egg=your_package_name

我参考了其他几个建议的方法,例如this,但并没有解决我的问题。 有谁知道原因和解决方法吗? 我正在使用 Python 3.6.8

【问题讨论】:

    标签: python github pip repository installation


    【解决方案1】:

    The repository没有setup.py,不能用pip安装。

    【讨论】:

    • 感谢您的回答。好的,在这种情况下我该如何安装?您能给我提供任何指南或教程吗?
    • 为什么不问问作者呢?创建一个问题,例如询问如何在没有setup.py 的情况下安装。
    猜你喜欢
    • 1970-01-01
    • 2016-01-29
    • 1970-01-01
    • 1970-01-01
    • 2014-02-10
    • 1970-01-01
    • 1970-01-01
    • 2019-05-05
    • 2019-08-20
    相关资源
    最近更新 更多