[Python] missing modules after converting .py to .exe with pyinstaller

Discussão em 'Python' iniciado por Stack, Abril 29, 2025.

  1. Stack

    Stack Membro Participativo

    I am using pyinstaller to convert .py to .exe however after converting, when I then run the .exe, a command line window pops up for a split second and closes. the .exe isn't working almost at all, I then navigate to the warn.txt file and it says that there are a bunch of missing modules:

    missing module named resource
    missing module named posix
    missing module named _posixsubprocess
    missing module named cv2


    and allot more (24 in total)

    I've researched this problem and could not get a good answer iv tried converting with --onefile and --onedir and the same thing happens.

    how do I import or fix these missing modules so that the .exe will run correctly or even at all?

    Continue reading...

Compartilhe esta Página