build a .exe for Windows from a python 3 script

后端 未结 1 1579
栀梦
栀梦 2020-12-04 00:14

I would like building an executable for a python 3 script that:

  • imports pyqtgraph (with pyqt5)
  • imports theano and pymc3
  • also imports numpy, s
相关标签:
1条回答
  • 2020-12-04 00:59

    To create an executable file of your Python program, run the following command in CMD.First you need to install pyinstaller, with the following command:

    pip install pyinstaller
    

    And then do the following to create one executable file of your Python program, first, Go to your program path, (with cd) where your Python (.py) file is, and then:

    pyinstaller -w -F YourPyFile
    
    0 讨论(0)
提交回复
热议问题