2017-05-27 3 views
1

Ce sont les versions que je travaille avecPip installer tweepy sur mac ne fonctionne pas

$ python --version 
Python 2.7.10 
$ pip --version 
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7) 

Idéalement, je devrais être en mesure d'installer tweepy. Mais ce n'est pas le cas.

$ 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) 

Un groupe de lignes supprimées pour des raisons de concision. Il se termine finalement à ...

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' 

Quelqu'un peut-il aider?

Mise à jour J'ai également effectué les tests suivants. Mais n'a pas résolu le problème

$ sudo -H pip install tweepy 

Répondre

1

Installer avec:

sudo pip install tweepy 

On dirait un problème d'autorisation :)

+0

essayé. N'a pas fonctionné. –

0

j'ai eu le même problème. La façon dont j'ai résolu le problème était de télécharger python 2.7.13 sur le site officiel et de l'installer. Après cela, j'ai installé pépin avec:

sudo easy_install pip 

Et après:

pip install tweepy 

L'espoir est toujours pertinent :)