这几天,终于不再用Notepad++,而改用Pycharm,来做Python编程了。今天早上运行一个调用Win32api的程序,开始报错:
import win32api, sys, os
ImportError: DLL load failed: The specified module could not be found.
在 ImportError: DLL load failed: win32api, sys, os · Issue #23 · michaelgundlach/pyspeech · GitHub 这个链接中找到解决办法,简而言之,就是:
After you installed the pywin32 libs, there is a directory "Lib/site-packages/pywin32_system32", which including three dll libs, copy them to the "/Lib/site-packages/win32" directory, which including the win32api.pyd or win32api.pyc.