Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.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 2.7 Python PIP文件队列安装错误_Python 2.7_Pip - Fatal编程技术网

Python 2.7 Python PIP文件队列安装错误

Python 2.7 Python PIP文件队列安装错误,python-2.7,pip,Python 2.7,Pip,我正在尝试在Windows上的python虚拟环境中使用带PIP的需求文件安装一个包列表 通过列表的一半,我得到了以下错误。有人能告诉我错误是什么吗 (nsr) c:\Users\axxxan\Desktop\Temp>pip install -r requirements.txt Collecting appdirs==1.4.3 (from -r requirements.txt (line 1)) Using cached appdirs-1.4.3-py2.py3-none-a

我正在尝试在Windows上的python虚拟环境中使用带PIP的需求文件安装一个包列表

通过列表的一半,我得到了以下错误。有人能告诉我错误是什么吗

(nsr) c:\Users\axxxan\Desktop\Temp>pip install -r requirements.txt
Collecting appdirs==1.4.3 (from -r requirements.txt (line 1))
  Using cached appdirs-1.4.3-py2.py3-none-any.whl
Collecting asn1crypto==0.22.0 (from -r requirements.txt (line 2))
  Using cached asn1crypto-0.22.0-py2.py3-none-any.whl
Collecting backports-abc==0.5 (from -r requirements.txt (line 3))
  Using cached backports_abc-0.5-py2.py3-none-any.whl
Collecting beautifulsoup4==4.6.0 (from -r requirements.txt (line 4))
  Using cached beautifulsoup4-4.6.0-py2-none-any.whl
Collecting behave==1.2.5 (from -r requirements.txt (line 5))
  Using cached behave-1.2.5-py2.py3-none-any.whl
Collecting boto==2.46.1 (from -r requirements.txt (line 6))
  Using cached boto-2.46.1-py2.py3-none-any.whl
Collecting cachetools==2.0.0 (from -r requirements.txt (line 7))
  Using cached cachetools-2.0.0-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r requirements.txt (line 8))
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting cffi==1.10.0 (from -r requirements.txt (line 9))
  Using cached cffi-1.10.0-cp27-cp27m-win_amd64.whl
Collecting chardet==3.0.2 (from -r requirements.txt (line 10))
  Using cached chardet-3.0.2-py2.py3-none-any.whl
Requirement already satisfied: click==6.7 in c:\users\axxxan\envs\nsr\lib\site-packages (from -r requirements.txt (line 11))
Collecting cryptography==1.8.1 (from -r requirements.txt (line 12))
  Using cached cryptography-1.8.1-cp27-cp27m-win_amd64.whl
Collecting dill==0.2.6 (from -r requirements.txt (line 13))
  Using cached dill-0.2.6.zip
Obtaining dp_workflow from git+https://source.developers.google.com/p/txxx-data-lake-core-dev/r/nxx-dp@c6d58a36a3d5bed58333d5057633b789a99a6530#egg=dp_workflow (from -r requirements.txt (line 14))
  Skipping because already up-to-date.
Collecting enum34==1.1.6 (from -r requirements.txt (line 15))
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting filequeue==0.3.1 (from -r requirements.txt (line 16))
  Using cached filequeue-0.3.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\setup.py", line 16, in <module>
        long_description = "\n\n".join((read("README.rst"), read("CHANGES.rst"))),
      File "c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\setup.py", line 6, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    IOError: [Errno 2] No such file or directory: 'c:\\users\\axxxan\\appdata\\local\\temp\\pip-build-jqwnqf\\filequeue\\CHANGES.rst'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\axxxan\appdata\local\temp\pip-build-jqwnqf\filequeue\
(nsr)c:\Users\axxxan\Desktop\Temp>pip安装-r requirements.txt
收集appdirs==1.4.3(来自-r requirements.txt(第1行))
使用缓存的appdirs-1.4.3-py2.py3-none-any.whl
收集asn1crypto==0.22.0(来自-r requirements.txt(第2行))
使用缓存的asn1crypto-0.22.0-py2.py3-none-any.whl
收集后端口abc==0.5(来自-r requirements.txt(第3行))
使用缓存的Backport_abc-0.5-py2.py3-none-any.whl
收集beautifulsoup4==4.6.0(来自-r requirements.txt(第4行))
使用缓存的beautifulsoup4-4.6.0-py2-none-any.whl
收集行为==1.2.5(来自-r requirements.txt(第5行))
使用缓存的behave-1.2.5-py2.py3-none-any.whl
收集boto==2.46.1(来自-r requirements.txt(第6行))
使用缓存的boto-2.46.1-py2.py3-none-any.whl
收集cachetools==2.0.0(来自-r requirements.txt(第7行))
使用缓存的cachetools-2.0.0-py2.py3-none-any.whl
收集证书=2017.4.17(来自-r requirements.txt(第8行))
使用缓存的certifi-2017.4.17-py2.py3-none-any.whl
收集cffi==1.10.0(来自-r requirements.txt(第9行))
使用缓存的cffi-1.10.0-cp27-cp27m-win_amd64.whl
收集chardet==3.0.2(来自-r requirements.txt(第10行))
使用缓存的chardet-3.0.2-py2.py3-none-any.whl
已满足要求:在c:\users\axxxan\envs\nsr\lib\site软件包(来自-r requirements.txt(第11行))中单击==6.7
收集加密==1.8.1(来自-r requirements.txt(第12行))
使用缓存加密-1.8.1-cp27-cp27m-win_amd64.whl
收集dill==0.2.6(来自-r requirements.txt(第13行))
使用缓存的dill-0.2.6.zip
从git获取dp_工作流+https://source.developers.google.com/p/txxx-data-lake-core-dev/r/nxx-dp@c6d58a36a3d5bed58333d5057633b789a99a6530#egg=dp#U工作流(来自-r requirements.txt(第14行))
正在跳过,因为已更新。
收集枚举34==1.1.6(来自-r requirements.txt(第15行))
使用缓存的enum34-1.1.6-py2-none-any.whl
正在收集文件队列==0.3.1(来自-r requirements.txt(第16行))
使用缓存的filequeue-0.3.1.tar.gz
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“c:\users\axxxan\appdata\local\temp\pip build jqwnqf\filequeue\setup.py”,第16行,在
long_description=“\n\n”.join((read(“README.rst”)、read(“CHANGES.rst”)),
文件“c:\users\axxxan\appdata\local\temp\pip build jqwnqf\filequeue\setup.py”,第6行,已读
返回open(os.path.join(os.path.dirname(_文件,fname)).read()
IOError:[Errno 2]没有这样的文件或目录:“c:\\users\\axxxan\\appdata\\local\\temp\\pip build jqwnqf\\filequeue\\CHANGES.rst”
----------------------------------------
命令“python setup.py egg\u info”在c:\users\axxxan\appdata\local\temp\pip build jqwnqf\filequeue中失败,错误代码为1\

文件队列在PyPI上的tar文件中缺少
CHANGES.rst
。这会导致pip崩溃,因为
setup.py
需要
CHANGES.rst
(仅间接)。 鉴于上次更新的日期是2013年1月,修复可能需要一段时间。一个简单的解决方法如下:

pip install git+https://github.com/GP89/FileQueue.git
在安装依赖它的任何其他软件包之前

然后,在安装需要filequeue的其他包的过程中,pip应该发现它已经安装,并跳到下一个要安装的包



注意:最近的一个修复程序解决了这个问题,使用pip安装filequeue 0.3.2应该没有问题。

filequeue包似乎有一个bug:它的setup.py文件与实际数据(即缺少的CHANGES.rst文件)不符。您的。