I want to run a file created in Python on a PC that does not have Python. We will share the tools to solve such problems. It's an extended version of your own memo, so please be kind to us regarding the quality.
command prompt
pip install pyinstaller
Anaconda prompt
conda install pyinstaller
prompt
pyinstaller [file name].py --onefile
--If you omit the input of --onefile
in the last option, you will need multiple files in dist, which makes moving difficult.
--Please note that you cannot do anything that requires input at a command prompt such as input.
Recommended Posts