My System has Win 7 64bit installed when I try to execute the below code I'm facing with the error "No module named win32com.client". Can anyone help me with that?
import wmi
c = wmi.WMI()
display = c.Win32_videocontroller
print display.properties
I'm using Python 2.7Ver
Error code:
Traceback (most recent call last): File "", line 1, in import wmi File "C:\Python27\lib\site-packages\wmi.py", line 88, in from win32com.client import GetObject, Dispatch
ImportError: No module named win32com.client
Run ' win32com\client\makepy.py ' (eg, run it from the command window, or double-click on it) and a list will be presented. Select the Type Library ' Microsoft Word 8.0 Object Library ' From a command prompt, run the command ' makepy.py "Microsoft Word 8.0 Object Library" ' (include the double quotes).
win32com.server packageSupport for COM servers written in Python. The modules in this package provide most of the underlying framework for magically turning Python classes into COM servers, exposing the correct public methods, registering your server in the registry, etc.
The win32com. client package contains a number of modules to provide access to automation objects. This package supports both late and early bindings, as we will discuss.
UPDATE 2016
There is now a version of pywin32 on PyPI that can be installed with pip. It is called pypiwin32, and it installs the package using the binary wheel format.
https://pypi.python.org/pypi/pypiwin32
pip install pypiwin32
That will work in a virtualenv, or with tox, etc.
You can google it.Visit this link and choose the right version to install on your computer。
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With