Skip to content Skip to sidebar Skip to footer

Can't Import Wmi Python Module

I'm new to python. I'm working in windows environment. mostly win7. My machine is win7 32bit also. I downloaded the wmi module and used the .exe to install it. when I try and 'impo

Solution 1:

download WMI-1.4.9.win32.exe from https://pypi.python.org/pypi/WMI/ and it will resolve your problem

Solution 2:

Instead you can also install win32com which would resolve the issue. To install win32com use:

pip install pypiwin32

Solution 3:

What worked for me is: i downloaded the source named: WMI-1.4.9.zip from https://pypi.python.org/pypi/WMI/ Extracted all files from that zip file and saved it in a folder named: WMI-1.4.9 and then copied that folder to C:\Python27\Lib\site-packages. After that I navigated to that folder C:\Python27\Lib\site-packages\WMI-1.4.9 and did a shift + right click -> Open Command line here and ran: python setup.py install

That's it, after that it worked for me like charm. No issues.

p.s - While installing exe I had some weird Access Denied errors, I tried by running the exe as Administrator even then I could get through it. Hence that didn't at all work for me.

Also I had pywin32 installed from here: http://sourceforge.net/projects/pywin32/files/ (select the correct file - 'bittedness' and python version wise)

Post a Comment for "Can't Import Wmi Python Module"