ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

PIP安装不起作用(六个,numpy和python-dateutil要求)

2019-10-11 05:59:07  阅读:402  来源: 互联网

标签:python-dateutil python numpy pip six


我是Python的新手,想在Mac上为Python 3.5安装Pillow软件包.我使用pip install pillowcommand并收到此错误:

Jaspers-MBP:~ jasperherrmann$pip install pillow
Collecting pillow
  Using cached Pillow-5.1.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
prompt-toolkit 1.0.15 has requirement six>=1.9.0, but you'll have six 
1.4.1 which is incompatible.
pandas 0.22.0 has requirement numpy>=1.9.0, but you'll have numpy 1.8.0rc1 which is incompatible.
html5lib 1.0.1 has requirement six>=1.9, but you'll have six 1.4.1 which is incompatible.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.
Installing collected packages: pillow

所以我继续尝试安装pandas六,pip install numpy和pip install python-dateutil所需的所有东西pandas,html5lib等,并得到下一个错误(对于所有命令相同):

Jaspers-MBP:~ jasperherrmann$pip install six
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.4.1)
prompt-toolkit 1.0.15 has requirement six>=1.9.0, but you'll have six 1.4.1 which is incompatible.
pandas 0.22.0 has requirement numpy>=1.9.0, but you'll have numpy 1.8.0rc1 which is incompatible.
html5lib 1.0.1 has requirement six>=1.9, but you'll have six 1.4.1 which is incompatible.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.

所以我以为所有其他六种都已经存在,而我只需要使用pip install –upgrade six命令对其进行升级.这是我遇到的最后一个错误,现在不知道如何继续:

Jaspers-MBP:~ jasperherrmann$pip install --upgrade six
Collecting six
  Using cached six-1.11.0-py2.py3-none-any.whl
pandas 0.22.0 has requirement numpy>=1.9.0, but you'll have numpy 1.8.0rc1 which is incompatible.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have python-dateutil 1.5 which is incompatible.
Installing collected packages: six
  Found existing installation: six 1.4.1
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Jaspers-MBP:~ jasperherrmann$

所以在这里我很困惑,如果你们中的一些人对我的问题有解决的办法,我会很高兴的:-)

解决方法:

只需做pip install –ignore安装的枕头,就可以解决您的问题.

标签:python-dateutil,python,numpy,pip,six
来源: https://codeday.me/bug/20191011/1890420.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有