国内PIP安装加速 临时和永久设置镜像的方法

永久加速PIP安装速度

mkdir ~/.pip
echo -e "\n[global]\ntimeout = 6000\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple\n[install]\ntrusted-host = pypi.tuna.tsinghua.edu.cn\n#extra-index-url=https://www.piwheels.org/simple">~/.pip/pip.conf

验证一下

cat ~/.pip/pip.conf

临时加速PIP安装速度

pip install email_validator pdfkit pdfminer -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host tuna.tsinghua.edu.cn

评论

《 “国内PIP安装加速 临时和永久设置镜像的方法” 》 有 3 条评论

  1. […] 国内PIP安装加速 临时和永久设置镜像的方法 […]

  2. […] 国内PIP安装加速 临时和永久设置镜像的方法 […]

回复 Ubuntu通过源码安装Odoo15 – 白墨代码网 取消回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

奇客罗方公众号 奇客罗方小程序 奇客罗方客服 ITGeeker Telegram

网站由ITGeeker技术奇客开发并管理;隶属于GeekerCloud奇客罗方智能科技
Site designed and developed by ITGeekerwhich is a sub-website of GeekerCloud
网站地图 | 沪ICP备2021031434号-4