Environment
win10
ython 3.6.4 (v3.6.4V48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
pywin32 pywin32-220.win32-py3.6
then run scrapy
Traceback (most recent call last):
File "d:\program files\python\lib\site-packages\twisted\internet\defer.py", line 1386, in _inlineCallbacks
result = g.send(result)
File "d:\program files\python\lib\site-packages\scrapy\crawler.py", line 80, in crawl
self.engine = self._create_engine()
File "d:\program files\python\lib\site-packages\scrapy\crawler.py", line 105, in _create_engine
return ExecutionEngine(self, lambda _: self.stop())
File "d:\program files\python\lib\site-packages\scrapy\core\engine.py", line 69, in __init__
self.downloader = downloader_cls(crawler)
File "d:\program files\python\lib\site-packages\scrapy\core\downloader\__init__.py", line 88, in __init__
self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)
File "d:\program files\python\lib\site-packages\scrapy\middleware.py", line 58, in from_crawler
return cls.from_settings(crawler.settings, crawler)
File "d:\program files\python\lib\site-packages\scrapy\middleware.py", line 34, in from_settings
mwcls = load_object(clspath)
File "d:\program files\python\lib\site-packages\scrapy\utils\misc.py", line 44, in load_object
mod = import_module(module)
File "d:\program files\python\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "d:\program files\python\lib\site-packages\scrapy\downloadermiddlewares\retry.py", line 20, in <module>
from twisted.web.client import ResponseFailed
File "d:\program files\python\lib\site-packages\twisted\web\client.py", line 41, in <module>
from twisted.internet.endpoints import HostnameEndpoint, wrapClientTLS
File "d:\program files\python\lib\site-packages\twisted\internet\endpoints.py", line 41, in <module>
from twisted.internet.stdio import StandardIO, PipeAddress
File "d:\program files\python\lib\site-packages\twisted\internet\stdio.py", line 30, in <module>
from twisted.internet import _win32stdio
File "d:\program files\python\lib\site-packages\twisted\internet\_win32stdio.py", line 9, in <module>
import win32api
ImportError: DLL load failed: %1 Win32
I have read a lot of answers on the Internet, and many people say that pywin32 digits do not match py, so I wonder how pywin32 is successfully installed if the digits do not match.
of course, just to be on the safe side, I downloaded one of pywin32 amd64"s, and when I installed it, I directly reported that python36-32 could not find
, so I am sure that pywin32 is not a problem here.