Einstein.py
Einstein.py

Reputation: 61

Installing Tweepy with pip

I am trying to install tweepy with the pip command

pip install tweepy

however it is coming up with the error

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.
...
OSError: [Errno 1] Operation not permitted: '/var/folders/zt/c358wgd9255dc9xc2c4s7p9c0000gn/T/pip-odKEwd-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

I am on a mac running OSX 10.12

Thanks for any help

Upvotes: 2

Views: 3037

Answers (1)

Taku
Taku

Reputation: 33704

Since you tagged python-3.x my guess is that you also have python 3 installed and want to use that instead. The pip command by default, is used to install package for python-2.7 which is included with mac, but you do not have permission to modify library six for the built in python 2. So you should type this instead for python 3 pip:

pip3 install tweepy

if you are actually trying to install tweepy to python 2, then you should include the option --ignore-installed six which is required when installing packages that needs six since the included six module doesn't work fluently. So you should type the command which ignores the included six and install a new one overriding it:

pip install tweepy --ignore-installed six

Upvotes: 2

Related Questions