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?
1 Answer
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
-
this time it gives me this message: unable to locate package python-pip! Dec 2, 2014 at 15:33
-
-
-
or you can install pip from instructions given here pip.pypa.io/en/latest/installing.html– bolzanoDec 2, 2014 at 15:41
-
yeah, it's enabled... I will check that instruction. thanks for your help. Dec 2, 2014 at 15:45