当前位置:网站首页>python 下载模块加速实现记录
python 下载模块加速实现记录
2020-11-06 01:22:00 【IT界的小小小学生】
加速pip下载:更换pip源
pip下载python包时默认使用国外源,下载比较慢,可以考虑替换为国内源。
临时修改源
清华源
清华大学的pip源,它是官网pypi的镜像,每隔5分钟同步一次,推荐使用。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
–trusted-host pypi.tuna.tsinghua.edu.cn packagename
豆瓣源
pip install -i http://pypi.douban.com/simple
–trusted-host pypi.douban.com packagename
阿里源
pip install -i http://mirrors.aliyun.com/pypi/simple
–trusted-host mirrors.aliyun.com/pypi/simple/ packagename
永久修改
修改~/.pip/pip.conf文件,如果没有就创建一个,写入如下内容(以清华源为例):
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn
下载whl文件去安装
https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxmlpip
install cvxpy-xxx.whl

版权声明
本文为[IT界的小小小学生]所创,转载请带上原文链接,感谢
https://vip01.blog.csdn.net/article/details/101426554
边栏推荐
猜你喜欢
随机推荐
Want to do read-write separation, give you some small experience
嘘!异步事件这样用真的好么?
业内首发车道级导航背后——详解高精定位技术演进与场景应用
谁说Cat不能做链路跟踪的,给我站出来
小白量化投资交易入门课(python入门金融分析)
事半功倍:在没有机柜的情况下实现自动化
Grouping operation aligned with specified datum
The practice of the architecture of Internet public opinion system
Pycharm快捷键 自定义功能形式
【快速因數分解】Pollard's Rho 演算法
Real time data synchronization scheme based on Flink SQL CDC
Use of vuepress
Basic principle and application of iptables
Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
阿里云Q2营收破纪录背后,云的打开方式正在重塑
技術總監,送給剛畢業的程式設計師們一句話——做好小事,才能成就大事
python 保存list数据
DTU连接经常遇到的问题有哪些
(1) ASP.NET Introduction to core3.1 Ocelot
接口压力测试:Siege压测安装、使用和说明