[Python] pyinstaller is just outputting a generic file, not an exe

Discussão em 'Python' iniciado por Stack, Novembro 27, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to turn my Python script to an exe, but for some reason pyinstaller is just outputting a file of type file. It doesn't run if I add .exe to the end either. I am using WSL in VSCode and also using a virtual environment. What I have tried so far:

    pyinstaller --oneline charcounter.py


    pyinstall -F charcounter.py


    Here is an image of what the outputting file looks like in file explorer.

    [​IMG]

    Continue reading...

Compartilhe esta Página