临时修改(建议)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/ 

  

最新文章

  1. Linux常见查看硬件信息指令
  2. APM程序分析-AC_WPNav.cpp
  3. ASP.NET Core 使用 Redis 和 Protobuf 进行 Session 缓存
  4. webrtc第二篇 聊天室
  5. linux 解压缩
  6. Aspose 强大的服务器端 excel word ppt pdf 处理工具
  7. Miller_Rabin (米勒-拉宾) 素性测试
  8. git 初级
  9. 2014年10月16号--for语句实例
  10. php随机密码
  11. zookeeper[4] 安装windows zookeeper,及问题处理
  12. _extend用法总结
  13. Bzoj3473
  14. Container With Most Water 容器最大水容量
  15. Markdown简易语法说明
  16. NGUI_Input
  17. eval基础,基础用法及解析json
  18. IP 地址基本知识
  19. jq demo 点击评分组件
  20. Linux - 快速进入目录的方法

热门文章

  1. 大数据-redis
  2. 16 符号 xargs
  3. Apache Kafka(八)- Kafka Delivery Semantics for Consumers
  4. night of 2019.8.14
  5. 2019牛客多校第四场K number dp or 思维
  6. 【C语言】用C语言输出“心形”图案
  7. Swagger-ui接口文档
  8. ASP.NET Core Web API中实现全局异常捕获与处理
  9. JS json对象(Object)和字符串(String)互转方法
  10. 【想见你】剧情解析byZlc