Ubuntu – Install pygame in anaconda

python

I have anaconda on Ubuntu 14.04. I want to install the pygame module with anaconda. I already run sudo apt-get install python-pygame, but this only works on python, not in anaconda.

Best Answer

I realize I am quite late to the party but here is what worked for me if anyone needs it. Ubuntu 14.04 64-bit with Anaconda 2.3.0 installed.

Install binstar:

conda install binstar

You get a response like: The 'binstar' conda package has been renamed to 'anaconda-client'. Please run: conda install anaconda-client. So run:

conda install anaconda-client

Then search for the pygame package on anaconda.org:

anaconda search -t conda pygame

You get a list of pygame packages available at anaconda.org. Select a package for your distribution e.g. tlatorre/pygame is for Linux 64-bit. To install it use:

conda install -c https://conda.binstar.org/tlatorre pygame

Once done, import pygame should work.

Credit: Answer by cohdez on https://stackoverflow.com/questions/29137369/installing-pygame-module-in-anaconda-mac

Related Question