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:
- sudo apt-get install mercurial python3-pip libfreetype6-dev
- sudo apt-get build-dep python-pygame
- 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
Post a Comment