在Ubuntu上,可以使用PyInstaller来打包PyQt5应用程序。以下是打包应用程序的步骤:
pip install pyinstaller
pyi-makespec your_script.py
hiddenimports=['PyQt5']
pyinstaller your_script.spec
在完成上述步骤后,PyInstaller将会在dist目录下生成打包后的应用程序。可以将该应用程序分发给其他用户并在Ubuntu上运行。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:如何在Ubuntu上部署PyQt5应用