Python中文
首页
教程
问答
标签
搜索
登录
注册
matplotlib 1.3.1的要求numpy>=1.5,但是numpy 1.8.0rc1是不兼容的
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我在Mac(High Sierra)中执行bellow命令,作为<a href="https://github.com/tyiannak/pyAudioAnalysis" rel="noreferrer" title="pyAudioAnalysis">pyAudioAnalysis</a>入门的一部分。</p> <pre><code>pip install numpy matplotlib scipy sklearn hmmlearn simplejson eyed3 pydub </code></pre> <p>在安装过程中出现以下错误。感谢你的意见。</p> <p><strong>matplotlib 1.3.1的要求numpy>;=1.5,但numpy 1.8.0rc1是不兼容的。</strong></p> <p>请在下面找到更多信息</p> <pre><code>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 </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>下载最新版本的Python 2.7(<a href="https://www.python.org/downloads/" rel="nofollow noreferrer">https://www.python.org/downloads/</a>),matplotlib安装之后应该可以正常工作。</p> <p>另外,如果是一个全新的mac,只要确保安装了命令行工具</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在Excel中读取公式并将其转换为Python中的计算?
1 回答
如何在excel中读取嵌入的excel,并将嵌入文件中的信息存储在主excel文件中?
3 回答
如何在Excel中返回未知列长度的非空顶行列值?
10 回答
如何在excel中选择数据列?
8 回答
如何在Excel中通过脚本自动为一列中的所有单元格创建公共别名
9 回答
如何在excel中高效格式化范围AttributeError:“tuple”对象没有属性“fill”
8 回答
如何在excel单元格中编写python函数
4 回答
如何在excel单元格中自动执行此python代码?
5 回答
如何在excel工作表中创建具有相应值的新列
4 回答
如何在Excel工作表中复制条件为单元格颜色的python数据框?
1 回答
如何在Excel工作表中循环
3 回答
如何在excel工作表中打印嵌套词典?
6 回答
如何在excel工作表中绘制所有类的继承树?
4 回答
如何在Excel工作表中自动调整列宽?
9 回答
如何在excel工作表中追加并进一步处理
10 回答
如何在excel工作表之间进行更改?
3 回答
如何在excel或csv上获取selenium数据?
3 回答
如何在Excel或Python中将正确的值赋给正确的列
3 回答
如何在excel或python中提取单词周围的文本?
6 回答
如何在excel或python中转换来自Jira的3w 1d 4h的fromat数据?
10 回答