python安装包换源
时间: 2023-08-26 11:18:25 浏览: 118
要将Python安装包的源换成其他镜像源,可以按照以下步骤进行操作:
1. 打开命令提示符或终端窗口。
2. 执行以下命令,创建一个文件夹和一个文件:
```
mkdir %HOMEPATH%\.pip
echo [global >> %HOMEPATH%\.pip\pip.ini
```
3. 打开 `%HOMEPATH%\.pip\pip.ini` 文件,并将以下内容粘贴进去:
```
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [如何安装python,配置环境变量,第三方库换源](https://blog.csdn.net/weixin_49527509/article/details/126150839)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [python 安装包镜像源切换](https://blog.csdn.net/qq_29719097/article/details/80188400)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文