简体   繁体   English

私有Github python repo无法安装

[英]Private Github python repo cannot be installed

I want to install this Python package from a private repository. 我想从私有存储库安装此Python包

I tried multiple ways addressed here . 我试过多种方式解决在这里

However, I got following errors: 但是,我遇到了以下错误:

1. 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. 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. 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

I referred to several other methods suggested such as this , but didn't solve my problem. 我提到建议等几种其他的方法 ,但并没有解决我的问题。 Does anyone know the cause and the solutions? 有谁知道原因和解决方案? I am using Python 3.6.8 我使用的是Python 3.6.8

存储库没有setup.py ,它不能与pip一起安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM