2017-08-07 2 views
0

Ich versuchte pip install twilio zu verwenden, auch versucht zu $sudo pip install twilio, hielt die folgende Störung zu erhalten, keine Lösungen an anderer Stelle finden konnte, bitte helfen:Python pip Ausgabe installieren - Traceback Fehler während Twilio Installation

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 "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run 
    prefix=options.prefix_path, 
    File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install 
    requirement.uninstall(auto_confirm=True) 
    File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall 
    paths_to_remove.remove(auto_confirm) 
    File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove 
    renames(path, new_path) 
    File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames 
    shutil.move(old, new) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move 
    copy2(src, real_dst) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2 
    copystat(src, dst) 
    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-XS_kT9-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pyOpenSSL-0.13.1-py2.7.egg-info' 
+0

https://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx -10-11 –

+0

Was ist dein Betriebssystem? – Zcode

+0

@Zcode Mac OS Sierra 10.12.5 – huisleona

Antwort

1

wieder installieren Python :

brew install python 

und dann versuchen:

pip install twilio or sudo pip install twilio 
+0

hat nicht funktioniert. immer noch den gleichen Fehler. – huisleona

0

Verstanden herausgefunden. Offenbar hatte ich Python 3.6 auf dem Standard Python 2.7 installiert mit Mac OS installiert. Jedes Mal, wenn ich also pip install twilio mache, wird in die Standardbibliothek 2.7 nachgesehen, wenn der Pip in Python3 installiert wird. So konnte ich es durch Laufen beheben:

Python3 pip install twilio