【发布时间】:2014-08-21 02:45:17
【问题描述】:
我正在尝试在 Windows 上安装 Scrapy,并按照 Scrapy 安装指南中的步骤安装所有依赖项。但是,当我尝试使用 easy_install 时收到以下错误消息:
Download error on https://pypi.python.org/simple/Scrapy/: **[Errno 10061]
No connection could be made because the target machine actively refused
it -- Some packages may not be found!**
Couldn't find index page for 'Scrapy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: **[Errno 10061]
No connection could be made because the target machine actively refused
it -- Some packages may not be found!**
No local packages or download links found for Scrapy
error: Could not find suitable distribution for
Requirement.parse('Scrapy')
我也尝试使用 pip,但它也不起作用:
Downloading/unpacking Scrapy
**Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement Scrapy**
Cleaning up...
No distributions at all found for Scrapy
我去了 pip.log,它说
Could not fetch URL https://pypi.python.org/simple/Scrapy/: **connection
error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max
retries exceeded with url: /simple/Scrapy/ (Caused by
<class 'socket.error'>: [Errno 10061] No connection could be made
because the target machine actively refused it)**
Will skip URL https://pypi.python.org/simple/Scrapy/ when looking
for download links for Scrapy
我可以直接从 Internet Explorer 访问https://pypi.python.org/simple/Scrapy/,但不确定为什么 pip 或 easy_install 无法访问该链接。
我正在使用 Anaconda python,所以 easy_install 和 pip 已经是软件包的一部分。我在安装pywin32的最后阶段也出现了以下错误:
在文件对象析构函数中关闭失败:
sys.excepthook 丢失
丢失 sys.stderr
这是 easy_install 和 pip 失败的原因吗?请问有人可以帮忙吗?
【问题讨论】:
标签: python windows scrapy pip easy-install