[Python] Can't Import win32gui and win32ui modules to my project on Python 3.8 32-bit

Discussão em 'Python' iniciado por Stack, Julho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to get a screenshot in Python 3.8. When I search in google for the fastest way I found this link. Fastest way to take a screenshot with python on windows

    There is some module needed to install in this code. I tired to install them with command below.


    pip install pywin32
    ​

    After that command I could import win23con to my project. But when I try to import win32gui and win32ui gave error in import lines. I shared error titles in below.


    import win32con
    import win32gui #No module named 'win32gui'
    import win32ui #No module named 'win32ui'
    ​

    Screenshot for error from PyCharm

    After some research on google. I fount this answer in stackoverflow. https://stackoverflow.com/a/44065593/17257421

    If I understand corretly, I have to use Phyton-32bit version to use pywin32 module. I swith my project to Phyton 3.8 32-bit. But still I get same error.

    Where I try select Phyton Version for my Project

    Continue reading...

Compartilhe esta Página