Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing pygame on python3.5 osx

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?

like image 597
simplesystems Avatar asked Dec 06 '15 07:12

simplesystems


People also ask

Can you install pygame on Mac?

Installing PyGameIf you don't see any errors, it means that PyGame has been successfully installed on your Mac.

How do I import pygame into Python 3?

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?

Does Pygame work with Python 3? ¶ Yes. Pygame 1.9.


1 Answers

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
like image 99
Srgrn Avatar answered Oct 10 '22 02:10

Srgrn