Friday, September 23, 2016

Install pygame for Python 3 on Ubuntu

  1. sudo apt-get install python3-pip
  2. sudo pip3 install --upgrade pip
  3. sudo pip3 install pygame

update as of Jan 2019  . . . this might brake pip in later releases. Check comments below.

5 comments:

narayana p said...

I like your blog, I read this blog please update more content on python, further check it once at python online training

sandeep ponnuru said...

--upgrade killed my pip :(

Taylor Worthington said...

https://askubuntu.com/questions/712339/how-to-upgrade-pip-to-latest

This seemed a little bit more helpful.

Taylor Worthington said...

sandeep ponnuru, this is the summation of what that forum offered.

sudo su root
apt-get purge -y python3-pip
apt-get purge -y python2-pip
apt-get install python3-pip
apt-get install python2-pip
python3 -m pip install --upgrade pip
python2 -m pip install --upgrade pip

Taylor Worthington said...

Please let me know if it works.

Post a Comment