admin管理员组

文章数量:1530017

我在执行pip install scrapy时报错,内容如下:

During handling of the above exception, another exception occurred

这是由于频繁访问网站或请求造成的,可以通过更换国内源的方法来解决此问题。示例如下:

pip install scrapy -i http://pypi.douban/simple --trusted-host pypi.douban

其中-i指向要更换的国内源。
–trusted-host也是有必要的,否则会因为douban不被信任而报错。

最后附上pip国内的一些镜像:

中国科技大学 https://pypi.mirrors.ustc.edu/simple/
清华大学 https://pypi.tuna.tsinghua.edu/simple/
阿里云 http://mirrors.aliyun/pypi/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu/simple/
豆瓣(douban) http://pypi.douban/simple/

本文标签: 解决办法handlingExceptionoccurred