当前位置:网站首页>【杂】pip换国内源教程及国内源地址
【杂】pip换国内源教程及国内源地址
2022-08-02 06:43:00 【Fannnnf】
国内镜像地址
阿里云:https://mirrors.aliyun.com/pypi/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣:https://pypi.douban.com/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:https://pypi.hustunique.com/
山东理工大学:https://pypi.sdutlinux.org/
PS:如果地址报错可以换http试试
安装时临时换源
使用pip install -i 镜像链接 库名
例如:pip install -i http://mirrors.aliyun.com/pypi/simple/ numpy
永久换源
1. Linux
修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)
另外,树莓派(linux也可参考)配置方法可参考https://blog.csdn.net/qq_44214671/article/details/111008427
2. Windows
- 在文件资源管理器中输入
%appdata%进入Roaming文件夹 - 找到
pip文件夹,如果没有就创建一个,进入该文件夹 - 找到
pip.ini文件,如果没有就创建一个,用记事本打开该文件,将其中的内容替换为以下内容(镜像地址可以自己更换)
[global]
index-url = http://pypi.douban.com/simple
[install]
use-mirrors =true
mirrors =http://pypi.douban.com/simple/
trusted-host =pypi.douban.com
- 保存后关闭即可
边栏推荐
猜你喜欢

Expert Insights | 3 ways to seize innovation opportunities in a downturn

振兴农村循环经济 和数链串起农业“生态链”

解决:- SPY: No data found for this date range, symbol may be delisted报错

About the local server problem after ue4.27 pixel streaming package

Unity Shader学习(七)纹理图像的简单使用

Specified URL is not reachable,caused by :‘Read timed out

Clapper that can interact with the audience in real time

宝塔+FastAdmin 404 Not Found

【请教】SQL语句按列1去重来计算列2之和

每周推荐短视频:为什么产品开发需要数字化?如何做到数字化?
随机推荐
速看!PMP新考纲、PMBOK第七版解读
JS初识高阶函数和函数柯里化
2022夏暑假每日一题(六)
【ROS基础】map、odom、base_link、laser 的理解 及其 tf 树的理解
HCIP day 3 experiment
解决:- SPY: No data found for this date range, symbol may be delisted报错
解决Pytorch模型在Gunicorn部署无法运行或者超时问题
【云原生】如何快速部署Kubernetes
数据库概论之MySQL表的增删改查1
Vscode连接远程服务器出现‘Acquiring lock on/home/~’问题
Resolving C# non-static field, method or property "islandnum.Program.getIslandCount(int[][], int, int)" requires an object reference
实例028:递归求等差数列
Summer Summary (3)
打卡day05
LeetCode Algorithm 1374. 生成每种字符都是奇数个的字符串
Wuhan 2022 organizing of the high-performance computing added new ecological development of high-performance computing
LeetCode SQL 197. 上升的温度
正则表达式的理解学习
SQL执行顺序
请教一下,Flink SQL ,JDBC sink 入 mysql 库,想要搞一个自增主键,要怎么写