Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pip:缺少分发规范。如何修复此问题?_Python_Pip - Fatal编程技术网

Python pip:缺少分发规范。如何修复此问题?

Python pip:缺少分发规范。如何修复此问题?,python,pip,Python,Pip,在虚拟机上运行此命令时出现以下错误: $ sudo pip install -U -v --no-deps -b /tmp/piyush/ /tmp/piyush/common_bundle File "/usr/local/lib/python2.7/dist-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2807, in parse_requirements raise Val

在虚拟机上运行此命令时出现以下错误:

$ sudo pip install -U -v --no-deps -b /tmp/piyush/ /tmp/piyush/common_bundle

  File "/usr/local/lib/python2.7/dist-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2807, in parse_requirements
    raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '/tmp/piyush/common_bundle')
我的输入文件是归档文件

$ file common_bundle
common_bundle: Zip archive data, at least v2.0 to extract
pip的版本为:

$ pip -V
pip 6.0.6 from /usr/local/lib/python2.7/dist-packages/pip-6.0.6-py2.7.egg (python 2.7)
以下是公共_捆绑包中的pip清单:

# This is a pip bundle file, that contains many source packages
# that can be installed as a group.  You can install this like:
#     pip this_file.zip
# The rest of the file contains a list of all the packages included:
PyYAML==3.10
boto==2.6.0
msgpack-python==0.2.2
tornado==2.1.1
ujson==1.22
virtualenv==1.8.2
bottle==0.10.7
raven==2.0.3
protobuf==2.4.1
# These packages were installed to satisfy the above requirements:
simplejson==2.4.0
distribute==0.6.32
有什么可疑的吗


谢谢。

从存档安装
pip
时,文件必须具有正确的扩展名,或者您需要明确使用
文件://
协议。将文件重命名为
/tmp/piyush/common_bundle.zip
或使用
file:///tmp/piyush/common_bundle


您看到的错误与存档的内容无关,
pip
甚至还没有将其解压缩。

检查路径中是否有空格。这是我的问题。另外,请尽量缩短文件路径。

捆绑包是否有
requirements.txt
格式不正确的行?@musicaly\u ut:没有。我查看了该文件,它看起来不错。我还启动了命令“pip install-r file.txt”,它成功地通过了。我更新了上面的pip清单文件。为什么要传递
--无DEP
?这似乎是一个很好的方式来获得一个坏的安装。。。