简体   繁体   English

pip安装tweepy错误

[英]pip install tweepy error

When I try to install tweepy using pip (pip install tweepy) I get the below error on my mac (10.12.3). 当我尝试使用pip安装tweepy(pip install tweepy)时,在我的Mac(10.12.3)上收到以下错误。 Please help. 请帮忙。

OSError: [Errno 1] Operation not permitted: '/var/folders/s0/0j_bp8b96bl2mzltwxnc56300000gn/T/pip-9zf_EM-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info

You haven't given the program permissions to edit this. 您尚未授予程序编辑此权限。 You probably have to be the administrator to do it, or run the program as an administrator. 您可能必须是管理员才能执行此操作,或者以管理员身份运行该程序。 It fails because it doesn't have permissions. 它失败,因为它没有权限。 Putting sudo before the command might work. sudo放在sudo之前可能有效。

Thanks all for your response! 谢谢大家的回复! It looks like an issue with pip. 似乎是点子的问题。 Have successfully install using sudo pip install tweepy --user. 使用sudo pip install tweepy --user成功安装。

source: http://marcelog.github.io/articles/mac_osx_python_pip_install_operation_not_permitted.html 来源: http : //marcelog.github.io/articles/mac_osx_python_pip_install_operation_not_permitted.html

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

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