Python 3.5 + PyQt5 to standalone exe

后端 未结 1 935
闹比i
闹比i 2021-01-23 00:31

I\'m new to coding and I need to transform my py file to an exe. I tried py2exe and it didn\'t work with python 3.5. Then I tried pyinstaller and it worked, but when I added PyQ

相关标签:
1条回答
  • 2021-01-23 01:07

    I've figured out how to make an exe with Python 3.5 and pyinstaller. You need to install this:

    pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip --upgrade
    

    Then add path to PyQt5 dll's. I used this:

    pyinstaller -y --clean --paths C:\TEMP\env\Lib\site-packages\PyQt5\Qt\bin\
    
    0 讨论(0)
提交回复
热议问题