Search code examples
pythonwindowsanacondaexepyinstaller

How to build a .exe program from the Anaconda environment (Python 3.7)


How can I build a .exe program from my Anaconda environment to get a standalone application?


Solution

  • Create an environment with all packages needed for your program and run python your_script.py or pyinstaller --onefile <your_script_name>.py if you want a one-file .exe only.