PIP在Mac上安装tweepy不工作
问题描述:
这些都是我与PIP在Mac上安装tweepy不工作
$ python --version
Python 2.7.10
$ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
工作的理想我应该能够安装tweepy版本。但是这并没有发生。
$ 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)
为简洁起见删除了一堆行。它终于在...
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'
任何人都可以帮忙吗?
更新也尝试了以下内容。但并没有解决问题
$ sudo -H pip install tweepy
答
与安装:
sudo pip install tweepy
看起来像一个权限问题:)
答
我得到了同样的问题。我解决它的方式是从官方网站下载python 2.7.13并安装它。在那之后,我安装了PIP:
sudo easy_install pip
而在这之后:
pip install tweepy
希望它仍然是相关的:)
试过了。不工作。 –