ModuleNotFoundError: No module named ‘win32api

  jupyter-notebook, python-3.x, windows

I am using embedded python 3.7.4
Getting the folliwng error when trying to create new file in jupyter notebook
File "D:Userssgangop7python3.7.4Libsite-packagesjupyter_corepaths.py", line 387, in win32_restrict_file_to_user
import win32api
ModuleNotFoundError: No module named ‘win32api’

Solutions Tried:

  1. fresh install of jupyter notebook
  2. pip install pypiwin32
  3. pip install pywin32
  4. Running the pywin32_postinstall.py
  5. Added ‘D:Userssgangop7python3.7.4Libsite-packages’ in the PATH variable of environment variable
  6. Copied ‘win32api.pyd’ to ‘D:Userssgangop7python3.7.4Libsite-packageswin32lib’
  7. I cannot find any other solution for how to fix this issue.

Source: Windows Questions

LEAVE A COMMENT