-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
UnicodeDecodeError when install in Windows 7 #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Based on the traceback, it looks like there's an error in your environment that's preventing mimetypes from initializing. I suspect if you do this:
you will get the same traceback. Indeed, this bug has been reported upstream. |
Original comment by hugleecool (Bitbucket: hugleecool, GitHub: hugleecool): HELLO! I come here by Google. I notice that the asker is a Chinese, the same to me. So, maybe we face the same problem. Then I register this website. I HAVE FIND THE RIGHT ANSWER! It is because when Python install some packages, it will check the Windows Registry, some Chinese software like Aliwangwang import 'gbk' value to the HKEY_CLASSES_ROOT. So Python doesn't work. It can be solved like this: open C:\Python27\Lib\ mimetypes.py with Notepad ++ or other editor, then search the line " default_encoding = sys.getdefaultencoding()". add codes to the line above like this: if sys.getdefaultencoding() != 'gbk': 简单来说,就是有些国内软件修改注册表导致python无法安装库,要改下lib目录下的代码。 |
Original comment by marco_chan (Bitbucket: marco_chan, GitHub: Unknown): I got error when adding the line : Traceback (most recent call last): I am newbie, pls help |
Original comment by marco_chan (Bitbucket: marco_chan, GitHub: Unknown): Thanks Jason! My PC is traditional Chinese, whre gbk is simplified Chinese. To share with other people using traditional, the codes needed will be:
|
Original comment by erickmendonca (Bitbucket: erickmendonca, GitHub: erickmendonca): I'm Brazilian and found the same issue on my system. The workaround fixed it for now. Thanks. |
Original comment by athruncole (Bitbucket: athruncole, GitHub: Unknown): Thanks to hugleecool !!!!! you so cool!!!!! |
Pass through PROGRAMDATA, PROGRAMFILES env variables
Originally reported by: tkdchen (Bitbucket: tkdchen, GitHub: tkdchen)
Install version 2.0.1 in Windows 7, Python 2.7.6 64bit. This error happened again when installing by running ez_setup.py downloaded from this repo.
The text was updated successfully, but these errors were encountered: