PIP安装时报The repository located at pypi.douban.com is not a trusted or secure host and is being ignore

Posted aprial2011

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PIP安装时报The repository located at pypi.douban.com is not a trusted or secure host and is being ignore相关的知识,希望对你有一定的参考价值。

C:\WINDOWS\system32>pip install scrapy
Collecting scrapy
The repository located at pypi.douban.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 pypi.douban.com‘.
Could not find a version that satisfies the requirement scrapy (from versions: )
No matching distribution found for scrapy

解决方法: 

[global]
index-url=http://pypi.douban.com/simple
timeout = 30
#require-virtualenv = true
download-cache = C:\Users\zpc\pip\download_cache

[install]
use-mirrors = true
mirrors =
http://d.pypi.python.org
http://b.pypi.python.org
http://c.pypi.python.org/simple
trusted-host = pypi.douban.com

以上是关于PIP安装时报The repository located at pypi.douban.com is not a trusted or secure host and is being ignore的主要内容,如果未能解决你的问题,请参考以下文章

Python之使用pip安转第三方库时报错ERROR: Could not find a version that satisfies the requirement pygame ERROR: No

pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )(示例代

安装setuptools和pip 以及安装时报错解决

pygame使用pip安装时报错,求解决

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE.

pip安装包时报错