最近发布了Python 3.8.0 (在20191014上,可以从[Python]: Python 3.8.0下载)。
PyWin32在[PyPI]上构建了它:pywin32 225 (发布于20190915)。不幸的是,在pip install
ing 之后,它不起作用。
样本:
[cfati@CFATI-5510-0:e:\Work\Dev\StackOverflow\q058631512]> sopr.bat *** Set shorter prompt to better fit when pasted in StackOverflow (or other) pages *** [prompt]> "e:\Work\Dev\VEnvs\py_064_03.07.03_test0\Scripts\python.exe" Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32api >>> ^Z [prompt]> "e:\Work\Dev\VEnvs\py_064_03.08.00_test0\Scripts\python.exe" Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32api Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed while importing win32api: The specified module could not be found. >>> ^Z
备注:
- 对于Python 3.7,我还将我的PyWin32模块升级到最新版本,并且可以正常工作
- 较旧的PyWin32版本适用于较旧的Python版本(2.7、3.5、3.6)
- 可在64 位和32 位上重现