issue with PIP install installation: unicodeencodeerror: ' ASCII ' codec can ' t encode characters in position xx solutionTransfer from CSDN
I run in cmd: Pip install wheel When the following issue occurs:
The solution is as follows:
* * Build a file in the Python directory python27\lib\site-packages sitecustomize.py
Inside the content is: * *
import sys sys.setdefaultencoding(‘gb2312‘)
Then re-execute the command: Pip install wheel
But it's possible that you'll still have this problem:
Then change the contents of the sitecustomize.py to the following:
import sys sys.setdefaultencoding(‘UTF-8‘)
Then execute the command again: Pip Install wheel
It worked!
Attached reference Link:
Http://stackoverflow.com/questions/10561923/unicodedecodeerror-ascii-codec-cant-decode-byte-0xef-in-position-1
https://www.v2ex.com/t/90659
http://www.crifan.com/summary_python_unicodedecode_error_possible_reasons_and_solutions/
-
Top
-
0
-
Step
Issue with PIP install installation: unicodeencodeerror: ' ASCII ' codec can ' t encode characters in position XX solution