简体   繁体   English

matplotlib 1.3.1 要求 numpy>=1.5,但您将拥有不兼容的 numpy 1.8.0rc1

[英]matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible

I'm executing bellow command in Mac (High Sierra) as a part of getting started with pyAudioAnalysis .作为pyAudioAnalysis入门的一部分,我正在 Mac(High Sierra)中执行 bellow 命令。

pip install numpy matplotlib scipy sklearn hmmlearn simplejson eyed3 pydub  

I'm getting following error during the installation process.我在安装过程中遇到以下错误。 Appreciate your input.感谢您的投入。

matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible. matplotlib 1.3.1 要求 numpy>=1.5,但您将拥有不兼容的 numpy 1.8.0rc1。

Please find more information below,请在下面找到更多信息,

Channas-MacBook-Pro:~ channa$ python
Python 2.7.10 (default, Oct  6 2017, 22:29:07) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
[3]+  Stopped                 python
Channas-MacBook-Pro:~ channa$ pip -V
pip 10.0.0b2 from /Library/Python/2.7/site-packages/pip-10.0.0b2-py2.7.egg/pip (python 2.7)
Channas-MacBook-Pro:~ channa$ sudo pip install numpy matplotlib scipy sklearn hmmlearn simplejson eyed3 pydub
The directory '/Users/channa/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/channa/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.8.0rc1)
Requirement already satisfied: matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.3.1)
Requirement already satisfied: scipy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (0.13.0b1)
Collecting sklearn
  Downloading sklearn-0.0.tar.gz
Collecting hmmlearn
  Downloading hmmlearn-0.2.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 (183kB)
    100% |████████████████████████████████| 184kB 189kB/s 
Collecting simplejson
  Downloading simplejson-3.13.2.tar.gz (79kB)
    100% |████████████████████████████████| 81kB 256kB/s 
Collecting eyed3
  Downloading eyeD3-0.8.5-py2.py3-none-any.whl (167kB)
    100% |████████████████████████████████| 174kB 100kB/s 
Collecting pydub
  Downloading pydub-0.21.0-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) (1.5)
Collecting tornado (from matplotlib)
  Downloading tornado-5.0.1.tar.gz (504kB)
    100% |████████████████████████████████| 512kB 354kB/s 
Requirement already satisfied: pyparsing>=1.5.6 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) (2.0.1)
Collecting nose (from matplotlib)
  Downloading nose-1.3.7-py2-none-any.whl (154kB)
    100% |████████████████████████████████| 163kB 213kB/s 
Collecting scikit-learn (from sklearn)
  Downloading scikit_learn-0.19.1-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 (8.0MB)
    100% |████████████████████████████████| 8.0MB 259kB/s 
Collecting python-magic (from eyed3)
  Downloading python_magic-0.4.15-py2.py3-none-any.whl
Collecting pathlib (from eyed3)
  Downloading pathlib-1.0.1.tar.gz (49kB)
    100% |████████████████████████████████| 51kB 54kB/s 
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from eyed3) (1.4.1)
Collecting futures (from tornado->matplotlib)
  Downloading futures-3.2.0-py2-none-any.whl
Collecting singledispatch (from tornado->matplotlib)
  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting backports_abc>=0.4 (from tornado->matplotlib)
  Downloading backports_abc-0.5-py2.py3-none-any.whl
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
Installing collected packages: scikit-learn, sklearn, hmmlearn, simplejson, python-magic, pathlib, eyed3, pydub, futures, singledispatch, backports-abc, tornado, nose
  Running setup.py install for sklearn ... done
  Running setup.py install for simplejson ... done
  Running setup.py install for pathlib ... done
  Running setup.py install for tornado ... done
Consider using the `--user` option or check the permissions

I was able to solve this with @Jacob's solution with some additional steps.我能够通过一些额外的步骤使用@Jacob 的解决方案来解决这个问题。 I'll post it here for anyone else facing this.我会把它贴在这里给其他面临这个问题的人。

  1. Firstly as Jacob mentioned I downloaded and installed the latest Python 2.7.14+ .首先,正如 Jacob 提到的,我下载并安装了最新的Python 2.7.14+
  2. Executed sudo easy_install pip to install pip again执行sudo easy_install pip pip 再次安装 pip

  3. Executed sudo pip install numpy执行sudo pip install numpy

Download the latest version of Python 2.7 ( https://www.python.org/downloads/ ), matplotlib install should work fine after that.下载最新版本的 Python 2.7 ( https://www.python.org/downloads/ ),之后安装 matplotlib 应该可以正常工作。

Also if it's a brand new mac, just make sure that you have command line tools installed此外,如果它是全新的 mac,只需确保安装了命令行工具

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:gevent 1.4.0 要求 greenlet&gt;=0.4.14,但您将拥有不兼容的 greenlet 0.4.13 - ERROR: gevent 1.4.0 has requirement greenlet>=0.4.14, but you'll have greenlet 0.4.13 which is incompatible 错误:tensorboard 2.0.2 要求 setuptools&gt;=41.0.0,但您将拥有不兼容的 setuptools 40.6.2 - ERROR: tensorboard 2.0.2 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.2 which is incompatible 点子显示为什么告诉我我有numpy版本1.13.1,而熊猫认为我有numpy版本1.8.0rc1 - Why does pip show tell me that I have numpy version 1.13.1, while Pandas thinks I have numpy version 1.8.0rc1 networkx 2.1的需求装饰器&gt; = 4.1.0,但是您将拥有不兼容的装饰器4.0.11 - networkx 2.1 has requirement decorator>=4.1.0, but you'll have decorator 4.0.11 which is incompatible mezzanine 4.2.3 有要求 django&lt;1.11,&gt;=1.8,但你会有不兼容的 django 2.0.2 - mezzanine 4.2.3 has requirement django<1.11,>=1.8, but you'll have django 2.0.2 which is incompatible awscli 1.18.34 有要求 botocore==1.15.34,但您将拥有不兼容的 botocore 1.15.49 - awscli 1.18.34 has requirement botocore==1.15.34, but you'll have botocore 1.15.49 which is incompatible Spacy 2.0.11的要求正则表达式== 2017.4.5,但你有正则表达式2017.11.9是不兼容的 - Spacy 2.0.11 has requirement regex==2017.4.5, but you'll have regex 2017.11.9 which is incompatible 错误:typer 0.3.2 有要求 click&lt;7.2.0,&gt;=7.1.1,但你会点击不兼容的 8.0.3 - ERROR: typer 0.3.2 has requirement click<7.2.0,>=7.1.1, but you'll have click 8.0.3 which is incompatible 错误:pinax-images 4.0.1 要求枕头&gt;=7.1.2,但您将拥有不兼容的枕头 5.0.0 - ERROR:pinax-images 4.0.1 has requirement pillow>=7.1.2, but you'll have pillow 5.0.0 which is incompatible Python-Heroku - aiohttp 3.7.3 要求 chardet&lt;4.0,&gt;=2.0,但您将拥有不兼容的 chardet 4.0.0 - Python-Heroku - aiohttp 3.7.3 has requirement chardet<4.0,>=2.0, but you'll have chardet 4.0.0 which is incompatible
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM