Python uses Easy-install to install the Times Unicodedecodeerror solution, with the need for friends to refer to below.
Problem Description:
The following error has been reported when installing Matplotlib, pyparsing with Easy-install:
File "G:\Python27\lib\ntpath.py", line-up, in join Result_path = Result_path + p_pathunicodedecodeerror: ' ASCII ' code C can ' t decode byte 0xd4 in position 7:ordinal not in range (128)
My software environment is as follows:
Python 2.7.8 (Default, June, 16:03:49) [MSC v.1500 + bit (Intel)] on Win32
My system environment is as follows:
Windows 8.1 64-bit
Workaround:
The error message indicates that the encoding problem should be. I followed the error by making a modification to the ntpath.py and changing line 84th to read as follows:
<pre name= "code" class= "Python" >
Try: Result_path = Result_path + p_path except unicodedecodeerror: Result_path = Result_path.decode ( sysencoding). Encode (sysencoding) + P_path.decode (sysencoding). Encode (sysencoding)
The file is then added at the end of the import statement:
sysencoding = sys.getfilesystemencoding ()
Solved the problem of installation error.
Report:
In addition to other ntpath.py encountered in the Unicodedecodeerror should also be able to solve in the same way.
But remember to comment on the original statement after the modification to facilitate the problem after the recovery.
Python uses Easy-install to install the Times Unicodedecodeerror workaround