Configuring Pycharm to run Pyinstaller

后端 未结 7 1567
情深已故
情深已故 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:50

    The PyInstaller package is a runnable module and can be run using python -m PyInstaller. To configure it as a run target in PyCharm, leave the "Script" field blank, write -m PyInstaller in the "Interpreter Options" field, and put the PyInstaller parameters into the "Script Parameters" field.

    For example:

    PyCharm will complain that the "Script" field is empty, but it will let you run the configuration anyway.

提交回复
热议问题