windows ,linux永久和临时修改pip源
2024-08-30 21:11:46
临时修改(建议)pypi镜像源方法:如果有untrust 报错,可使用https开头的网站,或加上--trusted
例如:
pip install pywin32 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
豆瓣的也可以用镜像:
https://pypi.douban.com/simple/ --trusted-host pypi.douban.com 永久pypi源修改(不建议):
windows :
进入用户目录
cd %homepath%
md pip
cd pip
cd.>pip.ini
添加内容:
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com ===================================================
linux :
cd ~
mkdir .pip
cd .pip && vi pip.conf
添加内容:
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
--index-url为镜像源国内的pip源 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
最新文章
- Linux常见查看硬件信息指令
- APM程序分析-AC_WPNav.cpp
- ASP.NET Core 使用 Redis 和 Protobuf 进行 Session 缓存
- webrtc第二篇 聊天室
- linux 解压缩
- Aspose 强大的服务器端 excel word ppt pdf 处理工具
- Miller_Rabin (米勒-拉宾) 素性测试
- git 初级
- 2014年10月16号--for语句实例
- php随机密码
- zookeeper[4] 安装windows zookeeper,及问题处理
- _extend用法总结
- Bzoj3473
- Container With Most Water 容器最大水容量
- Markdown简易语法说明
- NGUI_Input
- eval基础,基础用法及解析json
- IP 地址基本知识
- jq demo 点击评分组件
- Linux - 快速进入目录的方法
热门文章
- 大数据-redis
- 16 符号 xargs
- Apache Kafka(八)- Kafka Delivery Semantics for Consumers
- night of 2019.8.14
- 2019牛客多校第四场K number dp or 思维
- 【C语言】用C语言输出“心形”图案
- Swagger-ui接口文档
- ASP.NET Core Web API中实现全局异常捕获与处理
- JS json对象(Object)和字符串(String)互转方法
- 【想见你】剧情解析byZlc