ImportError: No module named win32api while using Scrapy

半城伤御伤魂 提交于 2019-12-20 09:15:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!