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

C:WINDOWSsystem32>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:Userszpcpipdownload_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

原文地址:https://www.cnblogs.com/zhang-pengcheng/p/8052181.html