[Python] How do I solve the unsolvable error with pyinstaller

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

  1. Stack

    Stack Membro Participativo

    In my code, from cryptography.fernet import Fernet and i write this line in my file, make the file into windows executable from linux by wine and pyinstaller. After i made the exe, it show error : ModuleNotFoundError: No module named 'cryptography' when I run in windows.

    So, i try all solutions like, --hidden-import cryptography --hidden-import cryptography.fernet --collect-all cryptography --collect-data cryptography --collect-binaries cryptography

    Those also doesn't works, so anyone tell the solution of this please. I suffer in paste 2 days

    I need 100% working solution for my problem

    Continue reading...

Compartilhe esta Página