Skip to content

Instantly share code, notes, and snippets.

@BrambleXu
Created November 5, 2018 13:46
Show Gist options
  • Save BrambleXu/fc7793a5c477c7d6f243ba72df023303 to your computer and use it in GitHub Desktop.
Save BrambleXu/fc7793a5c477c7d6f243ba72df023303 to your computer and use it in GitHub Desktop.
Installing Pygame, Python 3.6 with Anaconda on OS X

Please make sure you already install the Anaconda.

I will create a virtual environment with anaconda and install the pygame in this virtual environment.

  • First create a virtual environment called pygame and install the Python 3.6 version.
conda create --name pygame python=3.6
  • Change to the pygame virtual environment.
conda activate pygame
  • Install pygame
python3 -m pip install -U pygame --user
  • Test pygame
python3 -m pygame.examples.aliens

If it works, you are ready to go!

@chriba76
Copy link

That was it! Thank you! I've been searching the Internet for hours…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment