当前位置:网站首页>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
边栏推荐
猜你喜欢

简直骚操作,ThreadLocal还能当缓存用

Computer TCP / IP interview 10 even asked, how many can you withstand?

事半功倍:在没有机柜的情况下实现自动化

Kitty中的动态线程池支持Nacos,Apollo多配置中心了

“颜值经济”的野望:华熙生物净利率六连降,收购案遭上交所问询

Vue 3 responsive Foundation

网络安全工程师演示:原来***是这样获取你的计算机管理员权限的!【维持】

直播预告 | 微服务架构学习系列直播第三期

Elasticsearch database | elasticsearch-7.5.0 application construction

3分钟读懂Wi-Fi 6于Wi-Fi 5的优势
随机推荐
自然语言处理之命名实体识别-tanfordcorenlp-NER(一)
(2)ASP.NET Core3.1 Ocelot路由
Dapr實現分散式有狀態服務的細節
遞迴思想的巧妙理解
通过深层神经网络生成音乐
DRF JWT authentication module and self customization
制造和新的自动化技术是什么?
Why do private enterprises do party building? ——Special subject study of geek state holding Party branch
vite + ts 快速搭建 vue3 專案 以及介紹相關特性
Serilog原始碼解析——使用方法
安装Anaconda3 后,怎样使用 Python 2.7?
Gradient understanding decline
你的财务报告该换个高级的套路了——财务分析驾驶舱
Elasticsearch database | elasticsearch-7.5.0 application construction
Grouping operation aligned with specified datum
Python自动化测试学习哪些知识?
分布式ID生成服务,真的有必要搞一个
【新閣教育】窮學上位機系列——搭建STEP7模擬環境
对pandas 数据进行数据打乱并选取训练机与测试机集
python过滤敏感词记录