Jan-13-2019, 04:30 PM
(Jan-13-2019, 12:11 PM)DarkLight Wrote: --some errors reported - so I update:
Adding Pyinstaller to PyCharm can be done by adding it as an external tool:
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: C:\Users\[your_user_here]\AppData\Roaming\Python\Scripts\pyinstaller.exe (Make sure that Pyinstaller is recognized in PyCharm Project...)
Arguments: --onefile $FilePath$
Working directory: $FileDir$
Using the tool
--------------
In PyCharm: Tools->External Tools->Pyinstaller
The exe file will appear on a dist subfolder of the .py file folder