繁体   English   中英

在python3.5 osx上安装pygame

[英]installing pygame on python3.5 osx

我试图安装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

有人用python 3.5在osx上成功安装了pygame吗?

你好像缺少mercurial,你可以简单地运行

brew install mercurial

这将安装hg,你可以从mercurial源安装

另外为了安装pygame你需要安装sdl

brew install sdl

我是这样做的:

pip3 install pygame

暂无
暂无

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

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