PyInstaller in Mac os X Mavericks

三世轮回 提交于 2019-12-24 12:16:56

问题


I have a problem with PyInstaller on Mac OS X, my Python version is 2.7 and I installed PyInstaller with pip. When I type pyinstaller in the command line, this error is returned:

$ pyinstaller
-bash: pyinstaller: command not found

I have PyInstaller installed in Windows from pip, and it works fine.


回答1:


this might be a little late, but you should install the zip file, extract the zip. Open the terminal and go to that directory, move the py files that you want to use pyinstaller for, and use this command:

$python pyinstaller.py yourfile.py

or if it's a GUI, use the --window extension:

$python pyinstaller.py --window yourfile.py

Hope this helped!



来源:https://stackoverflow.com/questions/22680337/pyinstaller-in-mac-os-x-mavericks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!