Solve the problem that pychram's pip cannot download third-party libraries

Installed the system and reinstalled pycharm, but there was a problem, pip could not update the third-party library

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located 

 

 

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn 

 

python -m pip install pip==23.0.1 

Now start installing third-party libraries:

 

 

 The installation was successful! ! ! !

 

Guess you like

Origin blog.csdn.net/chehec2010/article/details/130744595