Im trying to install 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?
You seem to be missing mercurial you can simply run
brew install mercurial
which will install hg and than you will be able to install from mercurial source
also in order to install pygame you need to install sdl
brew install sdl
我是这样做的:
pip3 install pygame
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.