[英]OSError: [Errno 1] Operation not permitted when installing python quandl on mac
i use following line to install quandl (python) on mac: 我使用以下行在Mac上安装quandl(python):
sudo -H pip install quandl
but there are a lot of errors: if you can't see clealy,i made a clip you can click: 1 但是有很多错误:如果看不清,我做了一个剪辑,您可以单击: 1
Found existing installation: numpy 1.8.0rc1 DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. 找到现有安装:numpy 1.8.0rc1弃用:不建议卸载distutils安装的项目(numpy),并且在以后的版本中将其删除。 This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 这是由于以下事实:卸载distutils项目只会部分卸载该项目。 Uninstalling numpy-1.8.0rc1: Exception: 卸载numpy-1.8.0rc1:例外:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, 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-RgO913-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
Try using ' sudo pip install --ignore-installed quandl ' instead. 尝试使用“ sudo pip install --ignore-installed quandl ”代替。
This --ignore-installed flag will sort things out! 这个--ignore-installed标志将解决问题!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.