python pip镜像源

国内镜像源:

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

如:

python.exe -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
如果你想使用pip安装软件包时使用清华镜像源,可以采取两种方式:永久配置和临时使用。永久配置是指将清华镜像源作为默认服务器,临时使用是指仅在下载某个特定软件包时使用清华镜像源。 永久配置的方法如下: 1. 执行命令:pip3 install pip -U,这是用于升级pip的命令。 2. 执行命令:pip3 config set global.index-url https://pypi.tuna.***:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名,这里的包名是你想要下载的具体软件包的名称。 请注意,在使用临时配置时需要将"包名"替换为你想要下载的具体软件包的名称,例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch。 以上是使用pip清华镜像源进行安装软件包的方法。希望可以帮到你。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [【Pythonpip配置清华镜像源](https://blog.csdn.net/yyj3900636/article/details/122744249)[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%"] - *3* [Python第三方库pip安装 清华镜像使用帮助(简单快捷超详细)](https://blog.csdn.net/weixin_43901865/article/details/113190061)[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 ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

浮生_Lee

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值