添加--with-python3
是这里的关键。您可以通过安装brew install --with-python3
。
通常,brew info <package-name>
会为您提供其他信息。在这种情况下brew info pygame
打印:
homebrew/python/pygame: stable 1.9.2a0, HEAD
http://pygame.org
Not installed
From: https://github.com/Homebrew/homebrew-python/blob/master/pygame.rb
==> Dependencies
Required: sdl ✔, sdl_image ✔, sdl_mixer ✔, sdl_ttf ✘, smpeg ✘, jpeg ✔, libpng ✔, portmidi ✘, homebrew/python/numpy ✘, freetype ✔
==> Options
--with-python3
Build with python3 support
--without-python
Build without python2 support
--HEAD
Install HEAD version
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句