解决 mac OSX pip OSError: [Errno 1] Operation not permitted
2017-11-15 13:59
726 查看
原文网址:http://www.jianshu.com/p/7a18c78b5982
这段时间在弄机器学习的事情,然后看Macbook里面的Python库有点旧,就用pip更新一下。
作者:phantomvk
链接: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
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
相关文章推荐
- 解决 mac安装或者更新第三方包安装不上的问题 mac OSX pip 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:
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 【Python学习笔记】macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 错误:OSError: [Errno 1] Operation not permitted: 'lib/python/six-1.4.1-py2.7.egg-info'
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- Mac OS X El Capitan (10.11) sudo pip install 报错 “OSError: [Errno 1] Operation not permitted”
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- npm ERR! errno -4048,Error: EPERM: operation not permitted
- ASM 实例 ORA-15063 ORA-15186 ASMLIB error function = [asm_open], error = [1], mesg = [Operation not permitted] 解决方法
- Linux UDP sendto error: Operation not permitted解决方法
- OSError: [Errno 1] Operation not permitted: '/tmp/pip-g3bg0s-uninstall/System/Library/Frameworks/Pyt