Jupyter Lab: ImportError: DLL load failed while importing win32api:

created at 02-23-2022 views: 14

foreword

I crashed the conda environment yesterday and reopened a new one. When running jupyter lab, an error is reported:

...
import win32api
ImportError: DLL load failed while importing win32api:can not find the module

solution

At first I reinstalled with pip and found it didn't work. o(╥﹏╥)o

Finally, I saw the solution provided by netizens:

First, find the file pywin32_postinstall.py in [Path to Anaconda3]\Scripts\

Then execute: python [Path to Anaconda3]\Scripts\pywin32_postinstall.py -install.

created at:02-23-2022
edited at: 02-23-2022: