Installation package fails pycharm 2019.2

Summary:

Recent student account registered pycharm, seemingly family bucket can be used for free, on the pycharm upgrade to the latest version.

However, when using the package management, installation package wrong

Tip no matching version, also suggested that following a --trusted-host pypi.douban.com

 

 The lower right corner to add it.

But it is not very convenient, do not add it every time?

Pip.ini default configuration can trust the server.

As shown in FIG. 1, (pip created folder current user), the new file in the corresponding directory: pip.ini

 

 

 2. Edit the file:

[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com

 

Then you can normally use.

Of course, normal use, I re-order errors, delete it, and everything is normal.

The results have not caught the wrong shots.

Guess you like

Origin www.cnblogs.com/jackadam/p/11610545.html