ImportError: No module named win32api while using

2020-05-18 11:31发布

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.

3条回答
迷人小祖宗
2楼-- · 2020-05-18 11:58

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.

查看更多
倾城 Initia
3楼-- · 2020-05-18 12:02

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

查看更多
聊天终结者
4楼-- · 2020-05-18 12:05

Try this.

pip install pypiwin32

查看更多
登录 后发表回答