Configuring Pycharm to run Pyinstaller

后端 未结 7 1570
情深已故
情深已故 2020-12-13 11:01

Yes I want to create a run configuration in PyCharm to run Pyinstaller and get my executable. According to the Pyinstaller documentation you should be able to locate an pyth

7条回答
  •  抹茶落季
    2020-12-13 11:34

    For those of us on Windows with Anaconda trying to figure this out, I found it easiest to just set up a Bash Configuration (I believe you need the BashSupport plugin for this), and set:

    • Script: pyinstaller (assuming pyinstaller is in your path, if not, the full path)
    • Interpreter path: C:\Windows\system32\cmd.exe (yes, a bash configuration can just use the standard command program)
    • Interpreter options: /C
    • Program arguments: script_name.py (along with any other pyinstaller arguments)
    • Working Directory: C:\Path\To\Script

提交回复
热议问题