ImportError: No module named pythoncom

后端 未结 5 489
旧巷少年郎
旧巷少年郎 2020-11-28 13:19

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

相关标签:
5条回答
  • 2020-11-28 13:58

    Just go to cmd and install pip install pywin32 pythoncom is part of pywin32 for API window extension.... good luck

    0 讨论(0)
  • 2020-11-28 14:00

    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.

    0 讨论(0)
  • 2020-11-28 14:01

    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
    
    0 讨论(0)
  • 2020-11-28 14:23

    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.

    0 讨论(0)
  • pip3 install pypiwin32

    $ pip3 install pypiwin32

    Sometimes using pip3 also works if just pip is not working

    0 讨论(0)
提交回复
热议问题