Das Problem begann, als ich versuchte, Twilio auf meinem Mac mit El Capitan 10.11.6 zu installieren.Probleme mit Six-Modul in Python2.7
habe ich diesen Fehler:
OSError: [Errno 1] Operation not permitted: '/tmp/pip-EmsRHo-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pyOpenSSL-0.13.1-py2.7.egg-info'
Forschung informierte ich pip install --ignore-installed six
laufen soll, die folgende Fehlermeldung angezeigt:
Ausnahme:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/six.py'
Weitere Forschung hat mir gesagt, brew install python
Ich einmal agai n versucht pip install twilio
New Fehler auszuführen:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/Users/rdacso/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 48, in <module>
import six
ImportError: No module named six
Ich habe zu pip install six
versucht, aber dieser Fehler weiterhin erhalten:
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/Users/rdacso/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 48, in <module>
import six
ImportError: No module named six
Alles als Ergebnis borked erscheint nicht Modul sechs. Ich kann sechs nicht installieren oder deinstallieren. Sogar Pip Freeze zeigt die ImportError: No module named six
.
Haben Sie 'pip install --ignore-installed six' nach der Installation von Python mit' brew' probiert? – wpercy
@wpercy Ja. Gleiches Problem: 'Rebeccas-MacBook-Pro: Gartenarbeit rdacso $ pip installieren --ignore-installiert sechs Traceback (letzten Anruf zuletzt): Datei"/usr/local/bin/pip ", Zeile 6, in aus pkg_resources importiert load_entry_point Datei "/Users/rdacso/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", Zeile 48, in Import sechs Import: Keine Modul mit dem Namen six' –
rdacso