我在Windows 10上有python 2.7.2。當我加載win32api和wmi時它無法加載。在Windows 10上的python安裝與在另一臺Windows 7 PC上相同。我沒有在Win 7這個問題下面是我收到的時候我嘗試導入在Windows 10在Windows 10上的Python¶
>>> import win32api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>> import wmi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python27\lib\site-packages\wmi.py", line 88, in <module>
from win32com.client import GetObject, Dispatch
File "c:\Python27\lib\site-packages\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ImportError: DLL load failed: The specified module could not be found.
有什麼能爲我的問題的原因上述模塊中的錯誤?是否有一個最低的Python版本應該與Windows 10一起使用?
我會懷疑'pywin32'沒有更新Win10 APIs ... – MattDMo
我使用的是Windows 10,並且這裏工作正常。 – alex
當系統32位或64位下載庫時,您需要小心。 – alex