2017-05-23 137 views
-1

對於sentdex教程中,我必須安裝quandl,但每當我嘗試安裝在python2.7這個Python模塊,我得到一個錯誤:不能在MacOS塞拉利昂安裝Quandl

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. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 
Uninstalling numpy-1.8.0rc1: 
Exception: 
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: '/var/folders/26/51wbl41d7hg6gh4vs7zlwchh0000gp/T/pip-HFl5IT-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' 

我見過這個錯誤每當安裝模塊需要numpy但已經找到它,所以它試圖卸載它,從而導致崩潰。我嘗試了「sudo pip install quandl」,「pip install quandl」等等。

請幫忙,謝謝!

+0

使用virtualenv並安裝較新版本的numpy。總是建議不要玩弄系統站點包。 – romeric

+0

請將答案作爲回答發佈並接受,不要將其發佈到題目中,將「已解決」放入標題中。 – deceze

回答

0

已解決!

我試過easy_install,它工作,不能相信我無法在互聯網上找到答案!

我做了:「sudo easy_install quandl」它工作!

相關問題