Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named win32com.client

Tags:

python

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

like image 615
Madhu Avatar asked Nov 02 '15 06:11

Madhu


People also ask

How do I use win32com client in Python?

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).

What is win32com in Python?

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.

What is the use of win32com client?

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.


2 Answers

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.

like image 159
M.S. Arun Avatar answered Sep 17 '22 04:09

M.S. Arun


You can google it.Visit this link and choose the right version to install on your computer。

like image 24
veekxt Avatar answered Sep 21 '22 04:09

veekxt