No module named 'win32api'

The installation for pywin32 must have failed, or it is not for same OS bit architecture (say anaconda 64 bit and pywin32 32 bit). I recommend

  1. you uninstall pywin32,
  2. check what bit version of anaconda you are using, then
  3. install pywin32 for same version,
  4. verify that the installer indicates 100% success and there are no errors flagged in the installer's log window (it's rare but something may fail and the installer doesn't know).
  5. Then open a python console and type "import win32com".

If #5 fails to import win32com, then:

  1. try installing a different version of python, for example from python.org
  2. repeat steps 2 to 5 above but for new python instead of anaconda

Could be that anaconda distributors did something to the python interpreter (although I didn't think so), or that some libs aren't registered right (see answer https://stackoverflow.com/a/17061853/869951 for some more things to try).


This should work:

pip install pypiwin32