title: How to fix ImportError: No module named pygame
body: <p>I was trying to import pygames from python using Canopy firstly and after no success I tried from terminal and in both cases I get:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>import pygame
        Traceback (most recent call last):
          File "", line 1, in 
        ImportError: No module named pygame</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>I did:</p>
  
  <p>sudo apt-get install python-pygame</p>
  
  <p>and in a desperate act also did the following:</p>
  
  <ol>
  <li>sudo apt-get install mercurial python3-pip libfreetype6-dev</li>
  <li>sudo apt-get build-dep python-pygame</li>
  <li>sudo pip3 install hg+<a href="http://bitbucket.org/pygame/pygame" rel="nofollow">http://bitbucket.org/pygame/pygame</a></li>
  </ol>
  
  <p>and when I check on /usr/lib/python2.7 I am able to see a folder named pygame (/usr/lib/python2.7/dist-packages/pygame)</p>
  
  <p>Can someone guide me on how to fix this problem?, thank you in advance</p>