SoFunction
Updated on 2024-11-15

Perfectly solves the problem that Python 2.7 can't use pip install properly

The main reason is that the user directory encoding uses Chinese, the solution is as follows:

The pip install python package loads my user directory, which happens to be Chinese and ascii can't encode it.

The solution:

python catalog Python27\Lib\site-packages build a file

Content writing:

import sys 
('gb2312') 

python will run this file automatically.

Above this perfect solution to Python 2.7 can not normally use pip install problem is all I have shared with you, I hope to be able to give you a reference, and I hope you support me more.