Open todofixthis opened 6 years ago
The trouble seems related to differences in the way pip.compat.console_to_str
works in different versions of Python:
if sys.version_info >= (3,):
def console_to_str(s):
try:
return s.decode(sys.__stdout__.encoding)
except UnicodeDecodeError:
return s.decode('utf_8')
else:
def console_to_str(s):
return s
Possible workaround: https://drj11.wordpress.com/2007/05/14/python-how-is-sysstdoutencoding-chosen/
lol there's even a PEP for it: https://www.python.org/dev/peps/pep-0528/
User was able to work around this issue by explicitly changing the encoding specified in console_to_str()
in pip/compat/__init__.py
(line 75). (note: pip v9.0.1)
Will look for a more... environmental workaround to recommend in the README
(:
Yup, I just did chcp in cmd and replaced the 'utf-8' in line 75 with the chcp shown in cmd.
Original issue for pip: https://github.com/pypa/pip/issues/4251
See https://pastebin.com/kTAsr3MH for full output.
Note: Works OK on same system with Python 2.7