pip install 清华镜像源
时间: 2023-09-05 22:14:22 浏览: 116
pip安装方式清华镜像源
引用中提到,在使用pip命令下载Python包时,可以通过设置pip的镜像源为清华镜像来加快下载速度。所以,如果要使用清华镜像源,可以在使用pip install命令时加上-i参数,并指定清华镜像源的URL,例如:
pip install [包名] -i https://pypi.tuna.tsinghua.edu.cn/simple
或者
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple [包名]
或者
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
这样,pip就会从清华镜像源下载相应的包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【Python】怎么在pip下载的时候设置镜像?(常见的清华镜像、阿里云镜像以及中科大镜像)](https://blog.csdn.net/wzk4869/article/details/130446850)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [pip清华源(国内常用镜像源)安装地址](https://blog.csdn.net/qq_41782425/article/details/127241938)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文