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,774 times
0
younes
- 349
user3590783
- 1
- 1
- 1
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