我正在尝试安装pygame
pip3 install hg+http://bitbucket.org/pygame/pygame
收到此错误:
Collecting hg+http://bitbucket.org/pygame/pygame
Cloning hg http://bitbucket.org/pygame/pygame to /var/folders/vl/g_3vs3xj2clcnyc58spzmjq00000gn/T/pip-7f5mltpu-build
Error [Errno 2] No such file or directory: 'hg' while executing command hg clone --noupdate -q http://bitbucket.org/pygame/pygame
/var/folders/vl/g_3vs3xj2clcnyc58spzmjq00000gn/T/pip-7f5mltpu-build
Cannot find command 'hg'
或
brew install pygame
错误:
Error: Failed to download resource "pygame"
Failure while executing: /usr/local/opt/mercurial/bin/hg clone https://bitbucket.org/pygame/pygame /Library/Caches/Homebrew/pygame--hg
有没有人在osx上使用python 3.5成功安装了pygame?
答案 0 :(得分:7)
你好像缺少善变 你可以简单地运行
brew install mercurial
将安装hg 而且你可以从mercurial源安装
另外为了安装pygame,你需要安装sdl
brew install sdl
答案 1 :(得分:1)
我是这样做的:
pip3 install pygame