Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named pythoncom

I am a newbie (just 1 week) to this Python world. I tried installing django-mssql, but when I tried to import the library (using import sqlserver_ado.dbapi), I got this error message:

ImportError: No module named pythoncom

I tried to look for that library without success.

Can you guys point me in the right direction?

like image 822
Quaspam Avatar asked Nov 10 '10 13:11

Quaspam


3 Answers

You are missing the pythoncom package. It comes with ActivePython but you can get it separately on GitHub (previously on SourceForge) as part of pywin32.

You can also simply use:

pip install pywin32
like image 109
kichik Avatar answered Oct 19 '22 19:10

kichik


If you're on windows you probably want the pywin32 library, which includes pythoncom and a whole lot of other stuff that is pretty standard.

like image 15
Binary Phile Avatar answered Oct 19 '22 19:10

Binary Phile


You should be using pip to install packages, since it gives you uninstall capabilities.

Also, look into virtualenv. It works well with pip and gives you a sandbox so you can explore new stuff without accidentally hosing your system-wide install.

like image 6
Hank Gay Avatar answered Oct 19 '22 18:10

Hank Gay