Sometimes you may want to convert your python script into a self-contained executable. The best tool for this job is PyInstaller, The PyScripter External Tools can simplify the process.
First you need to install PyInstaller, using the menu Tools, Tools, Install packages with pip:
Then you need to create an External Tool that uses PyInstaller to convert the active script into an executable. Use the menu Tools, Configure Tools... and then press Add. Configure the external tools as shown below:
With the above, all it takes to convert your script into an executable is to invoke the menu Tools, Tools, Create executable. Your executable can then be found in a subfolder of your script's folder called "dist".
If you want to learn more about external tools, consult the help file using Help, PyScripter, External Tools and Help, PyScripter, Parameters.
2 comments:
Perfect info.. Thank you very much..
Thank you but some of your parameters are not worked for me...
The working params for me:
Application: $[PythonExe-Path]Scripts\pyinstaller.exe
Parameters: --windowed "$[ActiveDoc]"
Working Directory: $[ActiveDoc-Dir]
Post a Comment