What's win32con module in python? Where can I find it?

前端 未结 7 1004
走了就别回头了
走了就别回头了 2020-12-01 09:13

I\'m building an open source project that uses python and c++ in Windows. I came to the following error message:

 ImportError: No module named win32con 


        
相关标签:
7条回答
  • 2020-12-01 09:24

    This module contains constants related to Win32 programming. It is not part of the Python 2.6 release, but should be part of the download of the pywin32 project.

    Edit: I imagine that the executable is an installation program, though the last time I downloaded pywin32 it was just a zip file.

    0 讨论(0)
  • 2020-12-01 09:35

    Ok I stumbled here twice for installs on two machines so here is a quick link for that ressource

    http://sourceforge.net/projects/pywin32/files/pywin32/

    This is the actual download page of the project and now a readme download

    0 讨论(0)
  • 2020-12-01 09:35

    Note that the Pywin32 download page contains installers for version 2.6 (i386 and AMD64). The ActiveState distribution is a single installer that includes pywin32 - currently at version 2.5.2.

    0 讨论(0)
  • 2020-12-01 09:35

    navigate to: C:\Python27\Lib\site-packages\win32\lib and copy the win32con.py file into your project directory.

    0 讨论(0)
  • 2020-12-01 09:37
    pip install pypiwin32
    

    Glyph had packed packed it until somebody sends patch to build wheels as part of pywin32 build process to close https://sourceforge.net/p/pywin32/bugs/680/

    0 讨论(0)
  • 2020-12-01 09:39

    The PyWin32 download references including project references are found in the pypi registry.

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