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

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


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