- #CONVERT PYTHON TO EXE WINDOWS HOW TO#
- #CONVERT PYTHON TO EXE WINDOWS .EXE#
- #CONVERT PYTHON TO EXE WINDOWS INSTALL#
Translations Languageīrazilian Portuguese (Português Brasileiro) This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong. If you're having issues with the packaged executable or using this tool in general, I recommend you read my blog post on common issues when using auto-py-to-exe. If you need something visual to help you get started, I made a video for the original release of this project some things may be different but the same concepts still apply. If you want to have the output directory in the JSON config, add the directory under nonPyinstallerOptions.outputDirectory in the JSON file (will need to create a new key). This JSON config export action does not save the output directory automatically as moving hosts could mean different directory structures. This can then be imported into the UI again to re-populate all fields. Instead of inserting the same data into the UI over and over again, you can export the current state by going to the "Configuration" section within the settings tab and exporting the config to a JSON file. If you are running this package locally, you will need to call python -m auto_py_to_exe instead of auto-py-to-exe JSON Configuration Language codes can be found in the table under "Translations" below. Hint the UI what language it should default to when opening. Useful if you need to whitelist a folder to stop your antivirus from removing files. These can be generated in the settings tab. Provide a configuration file (json) to pre-fill the UI. Will not try to find Chrome.ĭon't try to open the UI in a browser and simply print out the address that the application can be accessed at. Open the UI using the default browser (which may be Chrome). Pre-fill the "Script Location" field in the UI. Find your converted files in /output when completed.Click the big blue button at the bottom to convert.Select other options and add things like an icon or other files.Outline will become blue when file exists.Select your script location (paste in or use a file explorer).Make sure you are in the directory below auto_py_to_exe (you will be after step 3) when calling python -m auto_py_to_exe or you will need to reference the folder auto_py_to_exe absolutely/relatively to where you currently are.
A Chrome window in app mode will open with the project running inside. Now to run the application, execute python -m auto_py_to_exe.
#CONVERT PYTHON TO EXE WINDOWS INSTALL#
You can run this project locally by following these steps: Then to run it, execute the following in the terminal: $ auto-py-to-exe You can install this project using PyPI: $ pip install auto-py-to-exe Installation and Usage Installing Via PyPI
#CONVERT PYTHON TO EXE WINDOWS HOW TO#
Read " Python 2.7 Support" below for steps on how to use this tool with Python 2.7. If chrome is not installed or -no-chrome is supplied, the default browser will be used.Īs of PyInstaller 4.0, Python 2.7 is no longer supported. To have the interface displayed in the images, you will need chrome.
#CONVERT PYTHON TO EXE WINDOWS .EXE#
exe converter using a simple graphical interface and PyInstaller in Python.