简体   繁体   English

在python3.5 osx上安装pygame

[英]installing pygame on python3.5 osx

Im trying to install pygame 我试图安装pygame

pip3 install hg+http://bitbucket.org/pygame/pygame

getting this error: 收到此错误:

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'

or 要么

brew install pygame

error: 错误:

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

anyone successfully installed pygame on osx with python 3.5? 有人用python 3.5在osx上成功安装了pygame吗?

You seem to be missing mercurial you can simply run 你好像缺少mercurial,你可以简单地运行

brew install mercurial

which will install hg and than you will be able to install from mercurial source 这将安装hg,你可以从mercurial源安装

also in order to install pygame you need to install sdl 另外为了安装pygame你需要安装sdl

brew install sdl

我是这样做的:

pip3 install pygame

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM