当前位置:网站首页>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
边栏推荐
- iptables基礎原理和使用簡介
- [performance optimization] Nani? Memory overflow again?! It's time to sum up the wave!!
- Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
- Top 10 best big data analysis tools in 2020
- 如果前端不使用SPA又能怎样?- Hacker News
- 【效能優化】納尼?記憶體又溢位了?!是時候總結一波了!!
- 幽默:黑客式编程其实类似机器学习!
- Asp.Net Core學習筆記:入門篇
- (1)ASP.NET Core3.1 Ocelot介紹
- Anomaly detection method based on SVM
猜你喜欢
随机推荐
遞迴思想的巧妙理解
WeihanLi.Npoi 1.11.0/1.12.0 Release Notes
一时技痒,撸了个动态线程池,源码放Github了
Every day we say we need to do performance optimization. What are we optimizing?
Flink的DataSource三部曲之二:内置connector
從小公司進入大廠,我都做對了哪些事?
TensorFlow2.0 问世,Pytorch还能否撼动老大哥地位?
GDB除錯基礎使用方法
Real time data synchronization scheme based on Flink SQL CDC
03_ Detailed explanation and test of installation and configuration of Ubuntu Samba
10 easy to use automated testing tools
接口压力测试:Siege压测安装、使用和说明
Query意图识别分析
Polkadot series (2) -- detailed explanation of mixed consensus
基于深度学习的推荐系统
GBDT与xgb区别,以及梯度下降法和牛顿法的数学推导
大数据应用的重要性体现在方方面面
选择站群服务器的有哪些标准呢?
Didi elasticsearch cluster cross version upgrade and platform reconfiguration
阿里云Q2营收破纪录背后,云的打开方式正在重塑