0

How can I install pygame in python 2.7.6 on Ubuntu 14? I've used sudo apt-get install python-pygame, but it does not work and gives me the following message: unable to locate package python-pygame. What shall I do now?

0

1 Answer 1

0

the best way to install python modules in python is do

sudo apt-get install python-pip

and then do

sudo pip install name_of_python_module

for you

sudo pip install pygame

and if you are unsure about name of any of the modules you can do

pip search name_of_python_module

and it will give you the search results and take the name and install by above method

5
  • this time it gives me this message: unable to locate package python-pip! Dec 2, 2014 at 15:33
  • do you have any suggestions why it happens? Dec 2, 2014 at 15:37
  • have you enabled universe section in your software and updates..
    – bolzano
    Dec 2, 2014 at 15:37
  • or you can install pip from instructions given here pip.pypa.io/en/latest/installing.html
    – bolzano
    Dec 2, 2014 at 15:41
  • yeah, it's enabled... I will check that instruction. thanks for your help. Dec 2, 2014 at 15:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.