Error while upgrading pip: UnicodeDecodeError: 'utf-8' codec can't decode byte

后端 未结 1 1348
一生所求
一生所求 2020-12-09 20:05

I\'ve just installed python on windows 10, and I\'m trying to upgrade pip.

My windows user name has hebrew charecters...

When I try to run:

相关标签:
1条回答
  • 2020-12-09 20:22

    It looks like a bug in pip where it's assuming its metadata is stored as UTF-8. Instead, your username appears to be encoded as "windows-1255".

    You could try the following:

    1. Backup C:\Users\עדי\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py
    2. Goto line: 1616
    3. Change utf-8 to mbcs.
    4. Re-run upgrade
    0 讨论(0)
提交回复
热议问题