python 2.7 - How to fix ImportError: No module named pygame -


i trying import pygames python using canopy firstly , after no success tried terminal , in both cases get:

import pygame traceback (most recent call last): file "", line 1, in importerror: no module named pygame

i did:

sudo apt-get install python-pygame

and in desperate act did following:

  1. sudo apt-get install mercurial python3-pip libfreetype6-dev
  2. sudo apt-get build-dep python-pygame
  3. sudo pip3 install hg+http://bitbucket.org/pygame/pygame

and when check on /usr/lib/python2.7 able see folder named pygame (/usr/lib/python2.7/dist-packages/pygame)

can guide me on how fix problem?, thank in advance

try searching pygame in synaptic package manager. install there.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -