当前位置:网站首页>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
边栏推荐
- 面经手册 · 第12篇《面试官,ThreadLocal 你要这么问,我就挂了!》
- How to demote a domain controller in Windows Server 2012 and later
- 读取、创建和运行多个文件的3个Python技巧
- 6.7 theme resolver theme style parser (in-depth analysis of SSM and project practice)
- 向北京集结!OpenI/O 2020启智开发者大会进入倒计时
- 对pandas 数据进行数据打乱并选取训练机与测试机集
- 【Flutter 實戰】pubspec.yaml 配置檔案詳解
- Existence judgment in structured data
- Details of dapr implementing distributed stateful service
- 【快速因數分解】Pollard's Rho 演算法
猜你喜欢

如何对Pandas DataFrame进行自定义排序

mac 下常用快捷键,mac启动ftp

Can't be asked again! Reentrantlock source code, drawing a look together!

Don't go! Here is a note: picture and text to explain AQS, let's have a look at the source code of AQS (long text)

怎么理解Python迭代器与生成器?

通过深层神经网络生成音乐

使用NLP和ML来提取和构造Web数据

一时技痒,撸了个动态线程池,源码放Github了

Using Es5 to realize the class of ES6

中国提出的AI方法影响越来越大,天大等从大量文献中挖掘AI发展规律
随机推荐
技術總監,送給剛畢業的程式設計師們一句話——做好小事,才能成就大事
【快速因數分解】Pollard's Rho 演算法
A debate on whether flv should support hevc
CCR炒币机器人:“比特币”数字货币的大佬,你不得不了解的知识
Listening to silent words: hand in hand teaching you sign language recognition with modelarts
mac 安装hanlp,以及win下安装与使用
01 . Go语言的SSH远程终端及WebSocket
Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
Polkadot series (2) -- detailed explanation of mixed consensus
容联完成1.25亿美元F轮融资
Want to do read-write separation, give you some small experience
Computer TCP / IP interview 10 even asked, how many can you withstand?
做外包真的很难,身为外包的我也无奈叹息。
WeihanLi.Npoi 1.11.0/1.12.0 Release Notes
Examples of unconventional aggregation
被老程式設計師壓榨怎麼辦?我不想辭職
Vue 3 responsive Foundation
2018个人年度工作总结与2019工作计划(互联网)
《Google軟體測試之道》 第一章google軟體測試介紹
7.3.1 file upload and zero XML registration interceptor