pip install下载换源
时间: 2023-09-02 21:08:16 浏览: 99
可以通过修改pip的镜像源来实现下载换源。首先,可以使用阿里云的镜像源来安装第三方库,命令如下:`pip install <package_name> -i http://mirrors.aliyun.com/pypi/simple/`。这样就可以使用阿里云的镜像源进行下载。如果想要永久修改pip的镜像源,可以打开pip.conf文件,并将相应的镜像源地址复制到文件中。以豆瓣源为例,可以打开pip.conf文件,将以下内容复制到文件中:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [小技巧1:如何给pip install进行换源](https://blog.csdn.net/m0_55320151/article/details/128033406)[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%"]
- *2* *3* [pip的安装,卸载和换源](https://blog.csdn.net/m0_56192771/article/details/124448249)[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 ]
阅读全文