当前位置:网站首页>【杂】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
- 保存后关闭即可
边栏推荐
- 2022.07.31(LC_6133_分组的最大数量)
- (部分不懂,笔记整理未完成)【图论】差分约束
- request.getSession(),的故事
- 实例032:反向输出II
- “蔚来杯“2022牛客暑期多校训练营4,签到题NDKHL
- nacos源码启动找不到istio包
- Revitalize rural circular economy and digital chain to link agricultural "ecological chain"
- typescript ‘props‘ is declared but its value is never read 解决办法
- 数据库概论之MySQL表的增删改查2
- 飞桨paddle技术点整理
猜你喜欢
随机推荐
倍福使用AdsRemote组件实现和C#的ADS通讯
[21天学习挑战赛——内核笔记](一)——设备树的概述(硬件、目标、效果、文件类型)
Analysis of GCC compiler technology
【暑期每日一题】洛谷 P1255 数楼梯
Clapper that can interact with the audience in real time
【云原生】如何快速部署Kubernetes
MQ带来的一些问题、及解决方案
【npm install 报错问题合集】- npm ERR! code ENOTEMPTY npm ERR! syscall rmdir
Facebook社媒营销的5大技巧,迅速提高独立站转化率!
实例028:递归求等差数列
Vscode连接远程服务器出现‘Acquiring lock on/home/~’问题
See the picture to understand | How to choose sales indicators to measure the health of business growth
typescript ‘props‘ is declared but its value is never read 解决办法
张驰课堂:六西格玛培训工具——箱线图
实例030:回文数
php删除一维数组中一个值
PMP新考纲考试内容介绍
WebGPU 导入[2] - 核心概念与重要机制解读
获取间隔的日期列表工具类
punch day05









