无法安装专用Github python repo

2024-10-03 19:22:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我想从私有存储库安装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/

三。你知道吗

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,但没有解决我的问题。 有人知道原因和解决办法吗? 我使用的是python3.6.8


Tags: piphttpsgitbuildgithubcomvarerror