简体   繁体   English

无法在macOS Sierra上安装Quandl

[英]Can't install Quandl on macOS Sierra

For a sentdex tutorial I had to install quandl, but whenever I try to install this python module in python2.7 I get a error: 对于senddex教程,我必须安装quandl,但是每当我尝试在python2.7中安装此python模块时,都会出现错误:

  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'

Ive seen this error whenever a installing module needed numpy but already found it so it tried to uninstall it thus resulting in a crash. 每当安装模块需要numpy但已经找到它时,我就已经看到此错误,因此它尝试将其卸载从而导致崩溃。 I have tried "sudo pip install quandl", "pip install quandl", and some more. 我已经尝试过“ sudo pip install quandl”,“ pip install quandl”等等。

Please Help, Thanks! 请帮助,谢谢!

SOLVED!!! 解决了!!!

I tried easy_install and it worked, can't believe that I couldn't find the answer on the internet!!! 我尝试过easy_install并成功了,简直不敢相信我在互联网上找不到答案!!!

I did : "sudo easy_install quandl" And it worked!!! 我做了:“ sudo easy_install quandl”,它起作用了!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM