问题
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:
I am using Windows.
回答1:
Try this.
pip install pypiwin32
回答2:
If you search a bit along the internet you will find the following documentation which describes what you have to do to install Py32Win: http://www.feedbackward.com/content/scrapy_install.pdf
Here are all the steps described you have to do. I did it with this document and now my Scrapy installation works on Windows.
回答3:
I was getting the error
An Error Occured while trying to start the kernel in the Spyder IDE and my error said 'No module named win32api'
My console/kernel was fixed by installing pypiwin32
by putting pip install pypiwin32
into the Python Command Prompt
来源:https://stackoverflow.com/questions/32586454/importerror-no-module-named-win32api-while-using-scrapy