PIP3 installiert keine Pakete mehr
Verfasst: Samstag 21. September 2019, 11:54
Hallo,
ich habe heute meinen Raspberry pi mit RaspbianBuster Lite neu aufgesetzt. Habe mir pip3 mit "sudo apt-get install python3-pip" runtergeladen, und ein paket (discord.py) installiert. Seitdem, immer wenn ich irgendeine Option mit pip durchführen will (sei es install, sei es pip updaten...) kommt folgender error:
Ich verstehe dass er Probleme mit einem Byte hat, aber ich hätte jetzt keine ahnung wie ich das beheben kann. Das Paket scheint python-wheels zu sein, und das wiederrum scheint discord.py zu benötigen, also ist deinstallieren keine wirkliche Option...
ich habe heute meinen Raspberry pi mit RaspbianBuster Lite neu aufgesetzt. Habe mir pip3 mit "sudo apt-get install python3-pip" runtergeladen, und ein paket (discord.py) installiert. Seitdem, immer wenn ich irgendeine Option mit pip durchführen will (sei es install, sei es pip updaten...) kommt folgender error:
Code: Alles auswählen
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2962, in _dep_map
return self.__dep_map
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2756, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2953, in _parsed_pkg_info
return self._pkg_info
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2756, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 369, in run
self._warn_about_conflicts(to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 495, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/operations/check.py", line 98, in check_install_conflicts
package_set = create_package_set_from_installed()
File "/usr/lib/python3/dist-packages/pip/_internal/operations/check.py", line 41, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2700, in requires
dm = self._dep_map
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2964, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2973, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2955, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 1413, in get_metadata
return value.decode('utf-8') if six.PY3 else value
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2: invalid start byte