Error Visual Studio Scrapy No Module Named Win32API

Visual Studio Python Scrapy Error
Visual Studio Python Scrapy Error

If you are developing modules for Scrapy in Visual Studio and you encounter an error “ModuleNotFoundError: No module named ‘win32api'”, you need to install pypiwin32 package.

To do this follow the following steps:

  1. Go to you Visual Studio Project and right-click on “Python Environments”
  2. Click on your Python package references, in my case it says “Python 3.7 (64-bit) (global default)”
  3. Type pypiwin32
  4. Click on “Run command: pip Install pypiwin32”, when the pypiwin32 (223) with a green package icon on the left shows up, it means the package was successfully installedInstall Pyiwin32 Package
  5. Click on “Install pypiwin32”
  6. That should do it.

If you are not using Visual Studio, just go to your comman prompt with admin privileges and type “pip install pypiwin32”

Mr. Riano has worked as Manager and Senior Architect in some of the biggest firms in the world -- Accenture, Wipro, Coca-Cola.

He has architected solutions on Fortune 500 companies from Microsoft, Visa, American Express, Chevron, Shell, Novartis, Starbucks, Bill & Melinda Gates Foundation to name a few.

He has earned a B.S. in Information Technology, M.S. in Computer Science, and currently a Doctoral Candidate.

On the weekends, he coaches soccer and holds a D License from US Soccer Federation.

Previous Story

Install Python Package from PYPI

Next Story

How to Fix Both Entity Framework Core and Entity Framework 6 Build Failed ASP.NET Core MVC

Latest from Private