使用自制软件安装pyinstaller

Cra*_*ter 1 python homebrew pyinstaller python-2.7

我在OS X 10.10.5上使用python 2.7.0和pygame 1.9.1.PyInstaller的用户指南规定Mac用户应该使用Homebrew,我已经安装了它.我用它来安装Python和Pygame.但是'brew install PyInstaller'在输入终端时根本不会生成任何公式!那我怎么用homebrew来安装PyInstaller呢?这似乎应该很简单,我很抱歉打扰你,但我搜索得很高,没有结果.

Noc*_*rno 8

pyinstaller文档的措辞很差,你可能误解了它们的含义.

PyInstaller使用当前Mac OS X安装提供的默认Python 2.7.但是,如果你打算使用Python的更高版本,或者如果您使用任何主要的软件包,如PyQt的,numpy的,Matplotlib,SciPy的,等等,我们强烈建议您安装THESE使用的MacPorts两种或自制.

这意味着说"安装更高版本的Python以及带有Homebrew的python包",而不是说"用homebrew安装pyinstaller本身".在这方面你是对的,在自制软件上没有pyinstaller的公式.

您可以使用pip安装pyinstaller:pip install pyinstallerpip3 install pyinstaller.然后用确认安装pyinstaller --version.