Jan-13-2019, 12:11 PM
Adding Pyinstaller to PyCharm can be done by adding it as an external tool:
Adding tool:
------------
Using the tool
--------------
In PyCharm: Tools->External Tools->Pyinstaller
The exe file will appear on a dist subfolder of the .py file folder
Adding tool:
------------
- In Pycharm - File->Settings->Tools->External Tools
- Click on the '+' sign to add a new tool (if it is the first tool you add, just fill the form, no need for the '+')
- Fill the fields:
Name: Pyinstaller
Description: Generate a single executable
Program: \pyinstaller.exe $FileName$ (Make sure that Pyinstaller is recognized in PyCharm Project...)
Arguments: --onefile
Working directory: $FileDir$\dist
Using the tool
--------------
In PyCharm: Tools->External Tools->Pyinstaller
The exe file will appear on a dist subfolder of the .py file folder