如何在Mac OSX(Yosemite)上安装Pygame

时间:2015-07-08 18:31:21

标签: python macos pygame

如何在Mac OSX Yosemite上安装Pygame?

1 个答案:

答案 0 :(得分:1)

如何在Mac OSX(Yosemite)上安装Pygame。收集其他堆栈溢出答案

  1. 如果你想在不同的环境下安装它而不是root(总是很好地保持root干净),那么在创建你的环境后激活它 - source激活“您的环境名称”
  2. 安装自制软件 ruby -e“$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
  3. http://xquartz.macosforge.org/landing/
  4. 安装xquartz11
  5. 安装mercurial:brew install mercurial
  6. pip install:pip install hg + http://bitbucket.org/pygame/pygame 如果这给出了与freetype标志相关的一些错误,那么首先使用
  7. 获取标志的位置

    freetype-config -cflags (获取CFLAGS的位置就像 - I / Users /.../.../.../.../ include / freetype2 ) (使用上述位置) CFLAGS ='我/用户/.../.../.../.../ include / freetype2'pip install hg + http://bitbucket.org/pygame/pygame

    1. 如果你想要codeskulptor等效,那么安装 pip install SimpleGUICS2Pygame