pycharm use of third-party packages installed

Ps:
https://pypi.mirrors.ustc.edu.cn/simple/

–trusted-host pypi.mirrors.ustc.edu.cn/simple/

File-Settings-Project: you will see the following screen after the project name -Project Interpreter
Here Insert Picture Description

Need to download third-party libraries need to click on the + sign to the right of the search
before that start with updated
Here Insert Picture Description
triangle on the right is updated to the new version of the + sign is installed, if you already have installed is not on, it is not clear why the original installation or the old version ... ha ha ha ha

After updating the pip click on the + sign to begin the installation

Before installing the URL because it is the first foreign country to become
clicking Manage Repositories can see the URL
Here Insert Picture Description
to default before foreign URLs into one of the three image URL
Tsinghua: https: //pypi.tuna.tsinghua.edu. cn / simple

Ali cloud: http: //mirrors.aliyun.com/pypi/simple/

China University of Science and Technology https://pypi.mirrors.ustc.edu.cn/simple/

On my picture is now replaced by Ali cloud China University of Technology in fact be
changed after good, find a third-party I am looking for pygame
then install

The results ----- installation failed because the domestic URLs need to trust (which has given reason to write) so below
Here Insert Picture Description
Options then select the input
-trusted-host pypi.mirrors.ustc.edu.cn
this is based on what URL you choose different URL you selected above need to trust different (nonsense ...)

Then you can successfully install a
fact, a closer look will find an error, I am writing this is to prevent Alzheimer's forget it ...

Ps:
https://pypi.mirrors.ustc.edu.cn/simple/

–trusted-host pypi.mirrors.ustc.edu.cn/simple/

Published 124 original articles · won praise 141 · views 160 000 +

Guess you like

Origin blog.csdn.net/weixin_36838630/article/details/105204882