mac os x python安装matplotlib 库 出错: Operation not permitted
2017-05-16 10:48
891 查看
原文链接:
http://30daydo.com/article/167
使用pip安装: sudo pip install matplotlib
分析了原因后,以为权限不够,所以就把这个目录:
/Users/rocky/Library/Caches/pip/
做了提权: sudo /Users/rocky/Library/Caches/pip/
然后重新运行sudo pip install matplotlib
然后没有上面提示的错误。 然后在主程序中继续运行,结果还是出现:matplotlib模块没找到。
删除后重装,问题依然存在。
于是尝试用easy_install 安装, sudo easy_install matplotlib
等待了大概10多分钟,居然安装成功了。 因为下载的服务器比较慢,所以等待的时间就有点长了。
30天学会量化交易
http://30daydo.com/article/167
使用pip安装: sudo pip install matplotlib
Password: The directory '/Users/rocky/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/rocky/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: matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Requirement already satisfied: numpy>=1.5 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) Collecting tornado (from matplotlib) Downloading tornado-4.4.3.tar.gz (463kB) 100% |████████████████████████████████| 471kB 84kB/s Requirement already satisfied: pyparsing>=1.5.6 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) Collecting nose (from matplotlib) Downloading nose-1.3.7-py2-none-any.whl (154kB) 100% |████████████████████████████████| 163kB 75kB/s Collecting singledispatch (from tornado->matplotlib) Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl Collecting certifi (from tornado->matplotlib) Downloading certifi-2017.1.23-py2.py3-none-any.whl (382kB) 100% |████████████████████████████████| 389kB 105kB/s Collecting backports_abc>=0.4 (from tornado->matplotlib) Downloading backports_abc-0.5-py2.py3-none-any.whl Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from singledispatch->tornado->matplotlib) Installing collected packages: singledispatch, certifi, backports-abc, tornado, nose Running setup.py install for tornado ... done Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/Library/Python/2.7/site-packages/pip/wheel.py", line 377, in move_wheel_files clobber(source, dest, False, fixer=fixer, filter=filter) File "/Library/Python/2.7/site-packages/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/man'
分析了原因后,以为权限不够,所以就把这个目录:
/Users/rocky/Library/Caches/pip/
做了提权: sudo /Users/rocky/Library/Caches/pip/
然后重新运行sudo pip install matplotlib
然后没有上面提示的错误。 然后在主程序中继续运行,结果还是出现:matplotlib模块没找到。
删除后重装,问题依然存在。
于是尝试用easy_install 安装, sudo easy_install matplotlib
等待了大概10多分钟,居然安装成功了。 因为下载的服务器比较慢,所以等待的时间就有点长了。
30天学会量化交易
相关文章推荐
- Python在Mac上运行matplotlib出错:RuntimeError: Python is not installed as a framework.解决办法
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- Mac使用 matplotlib 画图 => RuntimeError: Python is not installed as a framework
- Python.Mac中Pycharm软件下的Python安装库方法(包括opencv,numpy,matplotlib等)
- mac-python包安装错误 [Errno 1] Operation not permitted: '/var/folders/5n/vbm997m56xg3kw67y6bccn2m0000gn/T
- Python 添加图例出错:UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- macOS Sierra或者OS X EI Capitan安装PHP扩展出错,Operation not permitted, no-debug-non-zts
- mac上安装matplotlib和numpy等python库
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry
- 在mac上安装matplotlib (python)
- macOSX中使用python matplotlib模块的问题解决
- 错误:OSError: [Errno 1] Operation not permitted: 'lib/python/six-1.4.1-py2.7.egg-info'
- matplotlib Mac OS 安装过程
- 【Python学习笔记】macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- MAC下解决pip安装权限问题 OSError: [Errno 13] Permission denied OSError: [Errno 1] Operation not permitted:
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 解决 mac安装或者更新第三方包安装不上的问题 mac OSX pip OSError: [Errno 1] Operation not permitted
- Mac下安装eclipse+python+pydev+numpy+matplotlib
- windows+Mac下安装Python以及科学计算套装安装(scipy、numpy、matplotlib)
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry