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?
Asked
Active
Viewed 5,760 times
0

younes
- 339
1 Answers
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
-
this time it gives me this message: unable to locate package python-pip! – user3590783 Dec 02 '14 at 15:33
-
do you have any suggestions why it happens? – user3590783 Dec 02 '14 at 15:37
-
have you enabled universe section in your software and updates.. – bolzano Dec 02 '14 at 15:37
-
or you can install pip from instructions given here https://pip.pypa.io/en/latest/installing.html – bolzano Dec 02 '14 at 15:41
-
yeah, it's enabled... I will check that instruction. thanks for your help. – user3590783 Dec 02 '14 at 15:45