码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-12-17 16:00:02      阅读:1515      评论:0      收藏:0      [点我收藏+]

标签:解决   otherwise   and   available   epo   end   rust   you   matching   

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

标签:解决   otherwise   and   available   epo   end   rust   you   matching   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!