Sagar Raj Singh Sagar Raj Singh - 4 months ago 97x
Python Question

ImportError : cannot import name '_win32stdio'

I am working with Scrapy framework to scrap out data from website, but getting the following error in command prompt:

ImportError: cannot import name '_win32stdio'

Traceback is attached as a screenshot.

Kindly revert if require directory structure of my program's directory.

Error in CMD


Scrapy can work with Python 3 on windows if you make some minor adjustments:

  1. Copy the _win32stdio and _pollingfile to the appropriate directory under site-packages. Namely, twisted-dir\internet. Download these from

  2. pip install pypiwin32

Granted, this is based on my personal experience. Because the repository will certainly change in the future, readers should beware the age of this answer.