解决 mac OSX pip OSError: [Errno 1] Operation not permitted
来源:互联网 发布:淘宝运营绩效考核表 编辑:程序博客网 时间:2024/05/21 11:37
原文网址:http://www.jianshu.com/p/7a18c78b5982
这段时间在弄机器学习的事情,然后看Macbook里面的Python库有点旧,就用pip更新一下。
$ pip install --upgrade numpy
结果抛出下面这个异常报告
Exception:Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/basecommand.py", line 223, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/commands/install.py", line 299, in run root=options.root_path, File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_set.py", line 640, in install requirement.uninstall(auto_confirm=True) File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_install.py", line 726, in uninstall paths_to_remove.remove(auto_confirm) File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove renames(path, new_path) File "/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/utils/__init__.py", line 314, in renames shutil.move(old, new) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move copy2(src, real_dst) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2 copystat(src, dst) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat os.chflags(dst, st.st_flags)OSError: [Errno 1] Operation not permitted: '/tmp/pip-1_nHcH-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
Google后找到这个解决方案
$ pip install --upgrade pip$ sudo pip install numpy --upgrade --ignore-installed$ sudo pip install scipy --upgrade --ignore-installed$ sudo pip install scikit-learn --upgrade --ignore-installed
作者:phantomvk
链接:http://www.jianshu.com/p/7a18c78b5982
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
阅读全文
0 0
- 解决 mac OSX pip OSError: [Errno 1] Operation not permitted
- MAC下解决pip安装权限问题 OSError: [Errno 13] Permission denied OSError: [Errno 1] Operation not permitted:
- 解决 mac安装或者更新第三方包安装不上的问题 mac OSX pip OSError: [Errno 1] Operation not permitted
- MAC 解决OSError: [Errno 1] Operation not permitted
- OSError: [Errno 1] Operation not permitted
- OSError: [Errno 1] Operation not permitted
- OSError: [Errno 1] Operation not permitted: '/tmp/pip-g3bg0s-uninstall/System/Library/Frameworks/Pyt
- Mac/OSX root/sudo Operation not permitted
- 关于Mac OS下的pip:Operation not permitted问题
- linux多线程创建失败,errno=1:Operation not permitted
- Mac root Operation not permitted
- Mac-Operation not permitted问题
- Mac出现Operation not permitted
- MAC /usr/bin/目录下 Operation not permitted的解决
- pip install operation not permitted 解决办法
- Mac升级到 OSX 10.11 El Capitan 后 Operation not permitted - /usr/bin/sass
- mac下用pip 安装软件出现错误Operation not permitted
- Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
- Could not open lock file/var/lib/dpkg/lock的解决发方法
- 浅谈互联网企业故障定级
- Cinder Multiple-backends
- 阿里云容器宣布开放支持Kubernetes托管服务
- Pandas中loc,iloc和ix的区别
- 解决 mac OSX pip OSError: [Errno 1] Operation not permitted
- 《重构:改善既有代码的设计》案例一
- iOS 11 automaticallyAdjustsScrollViewInsets属性问题
- C#利用反射在debug状态下获取调用代码所在文件及行信息
- 【css】block,inline和inline-block概念和区别
- 1128. N Queens Puzzle (20)
- SSH远程连接LINUX
- 前端优化带来的思考,浅谈前端工程化
- vue组件-文件树