我有一个Bitbucket存储库,我需要将此存储库用于项目,当我尝试从Bitbucket下载时会发生以下错误。
pip install git+https://xxxxxx@bitbucket.org/xxxxx/project.git
Collecting git+https://paulohperes@bitbucket.org/paulohperes/snmp.git
Cloning https://paulohperes@bitbucket.org/paulohperes/snmp.git to /private/var/folders/zt/k2g_4ksj5gg8517c2fdp1npm0000gn/T/pip-uxd3i1wu-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/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/zt/k2g_4ksj5gg8517c2fdp1npm0000gn/T/pip-uxd3i1wu-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zt/k2g_4ksj5gg8517c2fdp1npm0000gn/T/pip-uxd3i1wu-build/
答案 0 :(得分:1)
错误是:
FileNotFoundError: [Errno 2] No such file or directory: '…/setup.py'
即,您正在尝试构建一个不是Python包并且不能进行pip安装的存储库。
如果不查看代码,很难说更多。