Alexandr Zarubkin added the comment:

An alternative solution, which worked for me, is:
add file named sitecustomize.py in Lib\site-packages folder.

The contents of the file:
import sys
sys.setdefaultencoding("cp1251")

The default encoding should be determined for every localized Windows version.
Also, when creating virtual environments, the same file should be placed in 
site-packages folder of virtual environment being created prior to installing 
setuptools in it.

----------
nosy: +me21
Added file: http://bugs.python.org/file33268/sitecustomize.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to