MiRoboticsLab / cyberdog_ws

Apache License 2.0
212 stars 39 forks source link

pip3无法安装包 #15

Closed ccap-zhy closed 1 year ago

ccap-zhy commented 1 year ago

mi@mi-desktop:~$ pip3 fTraceback (most recent call last): File "/usr/bin/pip3", line 9, in from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 22, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python3/dist-packages/pip/_vendor/init.py", line 64, in vendored("distro") File "/usr/lib/python3/dist-packages/pip/_vendor/init.py", line 33, in vendored import(modulename, globals(), locals(), level=0) File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 1051, in File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 596, in init File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 996, in _get_distro_release_info File "/usr/share/python-wheels/distro-1.0.1-py2.py3-none-any.whl/distro.py", line 1019, in _parse_distro_release_file File "/usr/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 458: invalid start byte

Tianhonghai commented 1 year ago

该问题由发行文件的编码格式导致,将以下文件重命名 sudo mv /etc/mr813_version /etc/mr813_version.backup 之后pip3可以正常使用

ccap-zhy commented 1 year ago

这个方法有效,已解决,谢谢

yjrqz777 commented 10 months ago

离谱