Installing pygame on ubuntu
<p>I am trying to install pygame on an Ubuntu 16.04 system.  My default python is 2.7.12.  I opened terminal and tried:</p>

<pre><code>sudo apt-get install python-pygame
</code></pre>

<p>I got this message:</p>

<pre><code>Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-pygame : Depends: python-numpy (&gt;= 1:1.8.0) but it is not going to be installed
                 Depends: python-numpy-abi9
E: Unable to correct problems, you have held broken packages.
</code></pre>

<p>I then tried to install numpy and got the same message except:</p>

<pre><code>The following packages have unmet dependencies:
 python-numpy : Depends: python:any (&gt;= 2.7.5-5~)
</code></pre>

<p>What should I do?</p>

<p>Figured it out.  Found a terminal command to reinstall python:</p>

<pre><code>sudo apt-get purge python &amp;&amp; sudo apt-get install python2.7
</code></pre>

python linux ubuntu numpy pygame