pypi 使用非 https 的镜像地址后无法使用,提示每次要加 `--trusted-host url` 来解决,pypi--trusted-host,之前一直是正常使用 al
pypi 使用非 https 的镜像地址后无法使用,提示每次要加 `--trusted-host url` 来解决,pypi--trusted-host,之前一直是正常使用 al
之前一直是正常使用 aliyun 的源,配置如下:
# ~/.pip/pip.conf[global]index-url = http://mirrors.aliyun.com/pypi/simple/
升级 pip 后,运行
>$ pip install virtualenv --upgrade返回提示: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'.Requirement already up-to-date: virtualenv in /usr/local/lib/python2.7/site-packages
可以看到返回说 virtualenv 是最新的,实际上并没用更新。得运行下面的代码才能升级:
pip install virtualenv --upgrade --trusted-host mirrors.aliyun.com
怎么解决,总不能每次都加 --trusted-host mirrors.aliyun.com 吧?
编橙之家文章,
相关内容
- scrapy写爬虫 却返回不出东西,scrapy写爬虫返回,我的想
- python urllib2爬虫短时间访问同一个网站 被拒绝 求教,
- 在启动ipython notebook时候 终端提示这样的错误,请问如
- 动态生成对象问题请教 (flask-sqlalchemy引出的python基本
- python 爬虫爬wiki 报错 [Errno 65] No route to host,pythonerrno
- 再次请教个flasksqlalchemy的表及字段问题,,class SpeedD
- python 第三方库requests连接url报错,pythonrequests,使用的语
- 今天两次遇到python里不同程序调同一模块,输入相同结
- Django: 路由与视图题的问题,django路由视图题,简介Dja
- wtforms 表单表单验证异常,不知如何解决,wtforms表单
评论关闭