ImportError: No module named win32api while using Scrapy

李皓伟 picture 李皓伟 · Sep 15, 2015 · Viewed 16.2k times · Source

I am a new learner of Scrapy. I installed python 2.7 and all other engines needed.

Then I tried to build a Scrapy project following the tutorial http://doc.scrapy.org/en/latest/intro/tutorial.html.

In the crawling step, after I typed scrapy crawl dmoz it generated this error message

ImportError: No module named win32api.
[twisted] CRITICAL : Unhandled error in deferred

I am using Windows.

Stack trace:

enter image description here
I am using Windows.

Answer

Alfan Dinda Rahmawan picture Alfan Dinda Rahmawan · Jan 29, 2017

Try this.

pip install pypiwin32