posted on 2023-05-21 17:33 read(1089) comment(0) like(30) collect(3)
1. After we enter pycharm, click File—>Settings in the upper left corner
2. Click Project: Proton Interpreter under the project name, and then click the + sign below.
3. Click Manage Repositions below
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/
1. We open my computer and enter the following path C:\Users\SHI\AppData\Roaming, where SHI is my username,
2. In the Roaming folder, create a new folder named pip, if there is, do not need to create a new one
3. Create a new text file.txt
4. Then change the name and suffix to pip.ini If there is, do not create a new one
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
Then save and exit, restart the following pycharm, you can test it, it is really much faster than before.
Original document address: https://blog.csdn.net/m0_46179013/article/details/119118578
更新:2022年7月22日 根据反馈添加了很多细节步骤
更新:2022年7月9日
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.
name:
Comment content: (supports up to 255 characters)
Copyright © 2018-2021 python black hole network All Rights Reserved All rights reserved, and all rights reserved.京ICP备18063182号-7
For complaints and reports, and advertising cooperation, please contact vgs_info@163.com or QQ3083709327
Disclaimer: All articles on the website are uploaded by users and are only for readers' learning and communication use, and commercial use is prohibited. If the article involves pornography, reactionary, infringement and other illegal information, please report it to us and we will delete it immediately after verification!