Gestern war ich in meinem Raspberry Pi 3 (raspbian jessie) einige Python-Code zu testen, benötigt es das Paket pytz, also tat ich:Himbeere python3.4 pip Fehler unbekannt Codierung CP437
sudo python3 -m pip install pytz
Und dann dies geschieht :
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1198, in prepare_files
do_download,
File "/usr/lib/python3/dist-packages/pip/req.py", line 1376, in unpack_url
self.session,
File "/usr/lib/python3/dist-packages/pip/download.py", line 582, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File "/usr/lib/python3/dist-packages/pip/util.py", line 640, in unpack_file
unzip_file(filename, location, flatten=not filename.endswith(('.pybundle', '.whl')))
File "/usr/lib/python3/dist-packages/pip/util.py", line 510, in unzip_file
zip = zipfile.ZipFile(zipfp)
File "/usr/lib/python3.4/zipfile.py", line 937, in __init__
self._RealGetContents()
File "/usr/lib/python3.4/zipfile.py", line 1016, in _RealGetContents
filename = filename.decode('cp437')
LookupError: unknown encoding: cp437
Es ist nicht nur mit pytz, habe ich versucht, zu aktualisieren/Upgrade/Neuinstallation pip mit:
sudo python3 -m pip install -U pip
und die gleichen Fehler passiert Irgendeine Idee, wie Sie dieses Problem lösen können?
Ich suchte und versuchte es gestern zu lösen und alles, was ich jetzt tun kann, ist die SD-Karte formatieren.
Meine Pip-Version ist 1.5.6, aber ich kann es nicht aktualisieren, sogar den Code herunterladen und setup.py ausführen, das gleiche Problem.
Verwandte, obwohl spezifisch für Windows und wie das Shell-Codierung tut: https://stackoverflow.com/questions/878972/windows-cmd-encoding-change-causes-python-crash – jdv
hi @ jmth, haben Sie versucht mit 'pip3' statt' pip'? –