[Python] Failing to convert a py-file to an exe-file [closed]

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    There are 12 gif-files and 4 mp3-files belonging to a python-file in the same folder as the py-code. When converting the py to exe the exe-file is running only when it is in the same folder with those gifs and mp3. The pictures and music are not found, when running outside this folder, let alone on another laptop. This happens no matter if I convert with "auto-py-to-exe" or "pyinstaller". what might be the reason?

    I tried "auto-py-to-exe" and "pyinstaller".

    I am expecting an exe-file that runs independent from its place, i.e. on another laptop.

    Continue reading...

Compartilhe esta Página