Error installing pygame

0

I'm trying to install pygame in my python 2.7. I do it in this python because for some reason if I try to install pip in python 3.7 it will not let me. From the terminal I entered:

sudo pip install pygame

And supposedly installed it well, but when I try to do the import it says:

Traceback (most recent call last):
  File "ejemplo.py", line 1, in <module>
    import pygame
ImportError: No module named pygame

If I try to do again sudo pip install pygame says:

Requirement already satisfied: pygame in /home/cesar/.local/lib/python2.7/site-packages (1.9.4)

Also, if I try to run pip list and look for pygame I get installed:

pygame                        1.9.4   

What may be happening? Why do you tell me that the requirement is already met if you are not able to import the module?

    
asked by Cesar Augusto 19.09.2018 в 22:15
source

0 answers