將我的python pyqt腳本(它使用PyQt UI的單獨UI文件)轉換爲獨立的Mac APP和exe文件的最佳方法是什麼?我在Python 3.5和使用PyQt5,我已經嘗試了所有的教程,我似乎總是會得到一個錯誤,未找到ui文件或未找到PyQt5等。Python的pyqt與ui文件獨立的應用程序和EXE?
我試過了: pyinstaller py2exe py2app
這是試圖(從git的最新版本)安裝pyinstaller當我得到的錯誤:
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5z/46_h30kx1d3cvwbbc2qlhs3h0000gn/T/pip-z4yhuehg-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/5z/46_h30kx1d3cvwbbc2qlhs3h0000gn/T/pip-rh7simww-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/5z/46_h30kx1d3cvwbbc2qlhs3h0000gn/T/pip-z4yhuehg-build/
pyinstaller肯定與pyt5一起工作,你使用的是什麼版本?你嘗試從git的最新版本嗎? – Nickpick