gpt4 book ai didi

python - Scrapy 教程 (Python) - ImportError : Error loading object

转载 作者:行者123 更新时间:2023-11-28 18:46:41 24 4
gpt4 key购买 nike

我必须在 Scrapy 架构 Win32 上运行基础教程。

当我尝试 scrapy crawl dmoz 时,显示以下错误:

File "C:\Python27\lib\site-packages\scrapy\utils\misc.py", line 40, in load_object raise ImportError, "Error loading object '%s':% s"% (path, e)

ImportError: Error loading object 'scrapy.core.downloader.handlers.s3.S3DownloadHandler': DLL load failed: Could not find the specified module.

Python 版本为 2.7,在 Win 32 上为 32 位。

我已经安装了以下(如 Platform specific installation notes ):

  • pywin32-218.win32-py2.7.exe

  • Twisted-13.1.0.win32-py2.7.exe

  • zope.interface-4.0.5.win32-py2.7.exe

  • lxml-3.2.3.win32-py2.7.exe

  • pyOpenSSL-0.11.winxp32-py2.7.exe

我有 easy_install 然后通过它安装了 pip,然后我做了:

pip install Scrapy

我刚刚做了一个改变。我像上面那样安装了 Zope .exe,然后我不喜欢:

zope.interface: zope.interface download the egg from pypi page and install it by running easy_install file.egg

这会是问题所在吗?

最佳答案

安装 pywin32 解决了我的问题,可从以下网址下载:http://sourceforge.net/projects/pywin32/

关于python - Scrapy 教程 (Python) - ImportError : Error loading object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19169165/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com