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?
Installing PyGameIf you don't see any errors, it means that PyGame has been successfully installed on your Mac.
Open a terminal, and type 'sudo apt-get install idle pygame', enter your password and type 'y' at the prompts, if necessary. 2. After the installation completes, enter 'python' in the terminal to launch Python. Verify that it's using version 2.7 or newer, then at the Python prompt enter 'import pygame'.
Does Pygame work with Python 3? ¶ Yes. Pygame 1.9.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With