News from this site

 Rental advertising space, please contact the webmaster if you need cooperation


+focus
focused

classification  

no classification

tag  

no tag

date  

no datas

pycharm solves the problem of slow module installation--Python

posted on 2023-05-21 17:33     read(1043)     comment(0)     like(30)     collect(3)



Introduction:
Introduce two installation methods that essentially change the mirror source

method one

1. After we enter pycharm, click File—>Settings in the upper left corner
insert image description here
2. Click Project: Proton Interpreter under the project name, and then click the + sign below.
insert image description here
3. Click Manage Repositions below
insert image description here

4. Click the default path, click the - sign to delete it, and then add one of the following mirror sources . I use Ali 's and it's still very fast. Friends can try each one, just find the one that is quicker.

Note that the new version of ubuntu requires the use of https sources.
Alibaba Cloud: http://mirrors.aliyun.com/pypi/simple/
Tsinghua University: https://pypi.tuna.tsinghua.edu.cn/simple
University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn /simple/
Huazhong University of Science and Technology: http://pypi.hustunique.com/Shandong
University of Technology: http://pypi.sdutlinux.org/Douban
: http://pypi.douban.com/simple/Official
website: https:/ /pypi.python.org/simple/
insert image description here

Method Two

1. We open my computer and enter the following path C:\Users\SHI\AppData\Roaming, where SHI is my username,
insert image description here

2. In the Roaming folder, create a new folder named pip, if there is, do not need to create a new one
insert image description here
3. Create a new text file.txt
insert image description here
4. Then change the name and suffix to pip.ini If there is, do not create a new one
insert image description here
5. Right-click to edit the original Delete the content and modify it to the following content. For the convenience of everyone to paste, I will copy mine directly. It is convenient for everyone to use Ctrl+c and Ctrl+v.
[global]

[global]
timeout = 10000
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com

insert image description here
Then save and exit, restart the following pycharm, you can test it, it is really much faster than before.
insert image description here
Original document address: https://blog.csdn.net/m0_46179013/article/details/119118578

Continually updated

更新:2022722日 根据反馈添加了很多细节步骤
更新:202279


Category of website: technical article > Blog

Author:Sweethess

link:http://www.pythonblackhole.com/blog/article/25349/361091355a4f1e167999/

source:python black hole net

Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.

30 0
collect article
collected

Comment content: (supports up to 255 characters)