venerdì 6 novembre 2020

Compile python script with pyinstaller in PyCharm

PyCharm 2020.2.3

File -> Settings -> Tools -> External Tools
Name: (give a name)
        Program: pyinstaller
        Arguments: $FileName$ --paths venv\Lib\site-packages --onefile Working dir: $FileDir$


To compile: Right click on the opened script and choose External Tools -> (compile ....given name)

Note: --paths venv\Lib\site-packages is for include libraries in the exe



(-;

Nessun commento: