当前位置:网站首页>【杂】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
- 保存后关闭即可
边栏推荐
- 【ROS基础】rosbag 的使用方法
- Connection reset by peer problem analysis
- PHP Warning: putenv() has been disabled for security reasons in phar
- In-depth analysis of the initialization of member variables and local variables
- Specified URL is not reachable,caused by :‘Read timed out
- 正则表达式的理解学习
- 2022年7月18日-7月31日(Ue4视频教程和文档,20小时。合计1412小时,剩8588小时)
- 数据库概论之MySQL表的增删改查1
- optional
- 牛客编程题中——需要处理输入较大数的题目
猜你喜欢

论文阅读 (64):Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning

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

Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
![[Dataset][VOC] Eyewear dataset 6000 in VOC format](/img/66/37f76d9ce5d5f68d6ea0e18710fa04.png)
[Dataset][VOC] Eyewear dataset 6000 in VOC format

Redis 常用命令和基本数据结构(数据类型)

The nacos source code can not find the istio package

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

张驰课堂:六西格玛培训工具——箱线图

Vscode connect to remote server "Acquiring the lock on the/home / ~ 'problem

awk语法-01-基础语法(命令、选项、内部变量)
随机推荐
【机器学习】课程设计布置:某闯关类手游用户流失预测
【论文精读】Geometric Structure Preserving Warp for Natural Image Stitching
实例032:反向输出II
宝塔+FastAdmin 404 Not Found
Vscode连接远程服务器出现‘Acquiring lock on/home/~’问题
2022夏暑假每日一题(六)
System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可 访问的日志: Security
解决C#非静态字段、方法或属性“islandnum.Program.getIslandCount(int[][], int, int)”要求对象引用
实例031:字母识词
【机器学习】实验2布置:基于回归分析的大学综合得分预测
At age 94, pioneer Turing award winner, computational complexity theory, Juris Hartmanis, died
【暑期每日一题】洛谷 P1192 台阶问题
新产品立大功 伟世通第二季度营收双增
yml字符串读取时转成数字了怎么解决
PMP新考纲通关秘籍,告别抓瞎
线程的创建方式
PWA 踩坑 - 第一次加载页面后无法获取CacheStorage某些资源
Facebook社媒营销的5大技巧,迅速提高独立站转化率!
ADS通信--倍福PLC和C#TextBox控件实现数据绑定的方法
实例030:回文数