Git 无法安装其他人的分支';使用pip的s存储库
我需要在Linux下安装Git 无法安装其他人的分支';使用pip的s存储库,git,pip,installation,Git,Pip,Installation,我需要在Linux下安装pycocotools。上面说我可以用 pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI 但是,当我执行上述命令时(从虚拟环境my_env),我得到以下答案: (my_venv) ...:~/Mask_RCNN$ pip install git+https://github.com/waleedka/cocoapi.git#
pycocotools
。上面说我可以用
pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
但是,当我执行上述命令时(从虚拟环境my_env
),我得到以下答案:
(my_venv) ...:~/Mask_RCNN$ pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
[1] 22087
(my_venv) ....:~/Mask_RCNN$ Collecting pycocotools from git+https://github.com/waleedka/cocoapi.git#egg=pycocotools
Cloning https://github.com/waleedka/cocoapi.git to /tmp/pip-build-qo_7ubcm/pycocotools
Username for 'https://github.com':
此时,由于git
提示我输入用户名,我使用我的GitHub用户名,但从回答中我猜它是在寻找存储库所有者的用户名(和密码?):
MyUserName
MyUserName: command not found
[1]+ Stopped pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools
[1]+ Stopped pip install git+https://github.com/waleedka/cocoapi.git#egg=pycocotools
安装失败。而且,很明显,我现在有一份悬而未决的背景工作:
ps
PID TTY TIME CMD
20079 pts/0 00:00:00 bash
22087 pts/0 00:00:00 pip
22094 pts/0 00:00:00 git
22095 pts/0 00:00:00 git-remote-http
22390 pts/0 00:00:00 ps
如何安装pycocotools的正确分支?我的建议是,您需要使用引号
'
来处理命令此部分中的“&subdirectory=PythonAPI
”运算符
此外,似乎存储库已移动到
因此,我尝试了这个命令,它不需要我的身份验证,但失败了,因为我没有安装Cython:
sanyash@sanyash-ub16:~$ pip3 install 'git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI'
Collecting pycocotools from git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI
Cloning https://github.com/waleedka/coco.git to ./pip-build-2pxyynzt/pycocotools
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI/setup.py", line 2, in <module>
from Cython.Build import cythonize
ImportError: No module named 'Cython'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2pxyynzt/pycocotools/PythonAPI
sanyash@sanyash-ub16:~$pip3安装'git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI'
从git收集吡咯醇+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI
克隆https://github.com/waleedka/coco.git 至./pip-build-2pxyynzt/pycocotools
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI/setup.py”,第2行,在
从Cython.Build导入cythonize
导入错误:没有名为“Cython”的模块
----------------------------------------
命令“python setup.py egg_info”失败,错误代码为/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI中的1
尽管我无法向您展示
pycotools
的完整成功安装,但希望我的回答能对您有所帮助。我的建议是,您需要使用引号,
来处理命令这一部分中的“&subdirectory=PythonAPI
和运算符
此外,似乎存储库已移动到
因此,我尝试了这个命令,它不需要我的身份验证,但失败了,因为我没有安装Cython:
sanyash@sanyash-ub16:~$ pip3 install 'git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI'
Collecting pycocotools from git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI
Cloning https://github.com/waleedka/coco.git to ./pip-build-2pxyynzt/pycocotools
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI/setup.py", line 2, in <module>
from Cython.Build import cythonize
ImportError: No module named 'Cython'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2pxyynzt/pycocotools/PythonAPI
sanyash@sanyash-ub16:~$pip3安装'git+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI'
从git收集吡咯醇+https://github.com/waleedka/coco.git#egg=pycocotools&subdirectory=PythonAPI
克隆https://github.com/waleedka/coco.git 至./pip-build-2pxyynzt/pycocotools
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI/setup.py”,第2行,在
从Cython.Build导入cythonize
导入错误:没有名为“Cython”的模块
----------------------------------------
命令“python setup.py egg_info”失败,错误代码为/tmp/pip-build-2pxyynzt/pycocotools/PythonAPI中的1
尽管我无法向您展示pycocotools
的完整成功安装,希望我的回答能对您有所帮助