我在我的系統上有Python 2.7 & 3.5。我使用OS X 10.12。 Python 2.7是系統上的默認設置。如何指定Python版本PyInstaller使用?
當使用樓宇PyInstaller ...
pyinstaller myscript.py
... PyInstaller使用Python 2.7。
也許我錯過了它,但在PyInstaller文檔中找不到任何可以指定Python版本的文檔。
有誰知道如何限制PyInstaller使用非默認的Python版本3.5?
我試過建設使用Macports。
使用命令後....
sudo port select python python35
我得到證實......
然後嘗試使用打造時...
pyinstaller main.py --onefile
PyInstaller節目它的建設與2.7 ...
68 INFO: PyInstaller: 3.2.1
68 INFO: Python: 2.7.13
我哪裏錯了?