我要从专用存储库安装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