Home > Blockchain >  How to get exe from Python file; ModuleNotFound error
How to get exe from Python file; ModuleNotFound error

Time:02-20

I want to transform a Python script to an .exe to share it with friends. I've tried with Hidden Importation PyGame

But I still get the same error.

CodePudding user response:

I have experienced this before where I export .py into .exe with --onedir setup. Here are the solutions that I might suggest (and works for me)

1. Export as --onefile

--onefile option in auto-py-to-exe

  • Related