首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PIP安装不起作用(六、numpy和python-dateutil要求)

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

Stack Overflow用户
提问于 2018-04-04 00:04:20
回答 2查看 5.1K关注 0票数 2

我是Python的新手,我想在Mac上为Python3.5安装Pillow包。我使用pip install pillow命令并得到以下错误:

代码语言:javascript
复制
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

因此,我继续尝试用pip install sixpip install numpypip install python-dateutil安装pandas、html5lib等似乎需要的所有东西,并得到下一个错误(对于所有命令都是一样的):

代码语言:javascript
复制
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.

所以我想好了,6和其他的已经存在了,我只需要用pip install --upgrade six命令来升级它们。这就是我得到的最后一个错误,现在不知道如何继续:

代码语言:javascript
复制
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$ 

所以我被困在这里了,如果你们中的一些人能解决我的问题,我会很高兴的:-)

EN

回答 2

Stack Overflow用户

发布于 2018-04-10 02:53:36

只要做pip install --ignore-installed pillow,应该可以解决你的问题。

票数 3
EN

Stack Overflow用户

发布于 2018-09-08 03:17:13

对于macOS,只需尝试pip install --upgrade --user six即可。祝好运!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49634510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档