Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https: //blog.csdn.net/Haiyang_Duan/article/details/77581699
encountered problems installing Python modules:
A UnicodeDecodeError: 'ASCII' CODEC CAN Not 0xD3 in decode byte position. 7: Not in ORDINAL Range (128)
. 1
solution is as follows:
Sitecustomize.py a new file in the Python Lib / site-packages in
And add content:
SYS Import
sys.setdefaultencoding (
'GBK') ----------------
Disclaimer: This article is CSDN blogger "leaf _ mesh barrier" original article, follow the CC 4.0 BY- SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/Haiyang_Duan/article/details/77581699