ImportError: No module named pythoncom

2019-01-08 00:48发布

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?

3条回答
smile是对你的礼貌
2楼-- · 2019-01-08 01:04

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.

查看更多
Anthone
3楼-- · 2019-01-08 01:14

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.

查看更多
你好瞎i
4楼-- · 2019-01-08 01:27

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.

查看更多
登录 后发表回答