[python-win32] ImportError: No module named xxxxxx

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Nov 10 14:19:31 CET 2012


On 10/11/2012 12:32, pythonStudent wrote:
> Hello,
>
> When I issue the following statement:
>
>>>> import win32com.client
>
> I got the following result:
>
> Traceback (most recent call last):
>    File "<pyshell#3>", line 1, in <module>
>      import win32com.client
> ImportError: No module named win32com.client
>
> These happened too with the following statements:
>
>>>> from xlrd import open_workbook
>
> Traceback (most recent call last):
>    File "<pyshell#1>", line 1, in <module>
>      from xlrd import open_workbook
> ImportError: No module named xlrd
>>>> import pythoncom
>
> Traceback (most recent call last):
>    File "<pyshell#2>", line 1, in <module>
>      import pythoncom
> ImportError: No module named pythoncom
>
>
> I there anything I need to do first or install first before I execute these
> statements?
> Please help.
>
> Thank you.
>

You'll need to install all of them before the import will work as none 
of them are provided with the standard Python distribution from 
python.org.  The easist way to do this is to get easy_install, and 
either use this directly to get the modules you want or use it to 
install pip, and then use pip.

-- 
Cheers.

Mark Lawrence.



More information about the python-win32 mailing list