linux 设置pip 镜像 Pip Warning:–trusted-host 问题解决方案
2015-07-18 20:54
696 查看
pip升级到7.0以后,在使用http镜像进行包安装及升级的时候往往会有如下提示:
Collecting beautifulsoup4
The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host mirrors.aliyun.com’.
Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4
解决办法如下:
1.安装时加入–trusted-host mirrors.aliyun.com参数:
2.在pip.conf中加入trusted-host选项,该方法是一劳永逸
Collecting beautifulsoup4
The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host mirrors.aliyun.com’.
Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4
解决办法如下:
1.安装时加入–trusted-host mirrors.aliyun.com参数:
1 | pip install beautifulsoup4 --trusted-host mirrors.aliyun.com |
1 2 3 4 | [global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com |
相关文章推荐
- Linux常用命令之mkdir/cp
- Linux下的软件安装
- Linux下的软件安装
- Linux编程中的文件锁之flock
- CentOs配置静态ip和修改主机名称
- 假冒“国产”Linux为什么要狠批?
- Centos7 firewalld防火墙学习使用记录
- Windows、Unix、Linux是什么类型的操作系统?
- Linux常用命令之ls/pwd/cd
- linux c 获取文件行数
- linux中的daemon进程
- linux makefile入门简介
- Linux学习笔记——如何使用共享库交叉编译
- CentOS下源码安装GCC 5.2.0
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)
- I.mx6s上移植wm8960驱动(基于linux3.0.101版本)