首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip在mac上安装tweepy不起作用

pip在mac上安装tweepy不起作用
EN

Stack Overflow用户
提问于 2017-05-27 09:01:20
回答 2查看 958关注 0票数 1

这些是我正在使用的版本。

代码语言:javascript
复制
$ python --version
Python 2.7.10
$ pip --version 
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)

理想情况下,我应该能够安装tweepy。但这是不可能的。

代码语言:javascript
复制
$ pip install tweepy 
Collecting tweepy
  Using cached tweepy-3.5.0-py2.py3-none-any.whl
Collecting six>=1.7.3 (from tweepy)
  Using cached six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.4.3 in /Library/Python/2.7/site-packages (from tweepy)
Requirement already satisfied: requests-oauthlib>=0.4.1 in /Library/Python/2.7/site-packages (from tweepy)
Requirement already satisfied: oauthlib>=0.6.2 in /Library/Python/2.7/site-packages (from requests-oauthlib>=0.4.1->tweepy)
Installing collected packages: six, tweepy
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) 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 six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)

一堆为了简洁而删除的行。它终于在..。

代码语言:javascript
复制
  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-CBvMLu-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

有人能帮忙吗?

Update也尝试了以下操作。但没有解决问题

代码语言:javascript
复制
$ sudo -H pip install tweepy 
EN

回答 2

Stack Overflow用户

发布于 2017-05-27 09:11:08

安装时:

代码语言:javascript
复制
sudo pip install tweepy

看起来像是权限问题:)

票数 1
EN

Stack Overflow用户

发布于 2017-07-26 23:45:22

我也有同样的问题。我解决这个问题的方法是从官方网站下载python 2.7.13并安装它。之后,我在pip上安装了:

代码语言:javascript
复制
sudo easy_install pip

在那之后:

代码语言:javascript
复制
pip install tweepy

希望它仍然具有相关性:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44214938

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档