Install pygame in Ubuntu Mate
Hi all, I have been trying to install pygame using pip and have been unsuccessful so far. Has anyone had success. SO far I have installed build-dep python-pygame and libfreetype6-dev dependancies based on stack overflow searches.

My latest error is:

Traceback (most recent call last):
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/", line 215, in main
   status =, args)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/commands/", line 342, in run
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/", line 784, in install
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/", line 851, in install
   self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/", line 1064, in move_wheel_files
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/", line 345, in move_wheel_files
   clobber(source, lib_dir, True)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/", line 316, in clobber
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/utils/", line 83, in ensure_dir
 File "/usr/lib/python2.7/", line 157, in makedirs
   mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pygame''".
I placed your log in a code block; please do this yourself from now on.

marcushh777    Cool

please join us for a chat @   or ssl

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
I was able to get pygame to successfully install tonight. First I updated pip. Oddly tis would only complete using sudo. Just using the pip command woud have it claim it was up to date and then immediately tell me I should update.
sudo -H pip install --upgrade pip

Then I was able to install pygame.
sudo -H pip install pygame

Best I can tell the system did not like installing with a straight pip command and required sudo for this.

Now to try and get PyQt.

Possibly Related Threads…
Thread Author Replies Views Last Post
  can't install a new OS with sd card. pinebook1080. ObviousHobbit 3 2,075 07-24-2019, 07:52 AM
Last Post: neilman
  Adding coherent_pool to boot.cmd on Xenial Mate by Ayufan causes boot loop k_mp 0 934 06-11-2019, 01:36 PM
Last Post: k_mp
  Problems putting Ubuntu (Xenial Mate) on my replacement eMMC. frank-zappa 11 5,813 05-01-2019, 12:09 PM
Last Post: frank-zappa
  Install OS to LUKS tahf 1 1,777 01-20-2019, 12:47 PM
Last Post: Blutkoete
  How to Configure Screen Brightness in mate on pinebook via terinal? shirman 6 4,883 12-02-2018, 05:37 AM
Last Post: mikee3000
  Pinebook Ubuntu XFCE screen resolution options Fox7799 2 2,289 12-01-2018, 06:05 PM
Last Post: Fox7799
  Pinebook 11.6" sound with Ubuntu XFCE Fox7799 1 1,677 11-21-2018, 12:54 PM
Last Post: Fox7799
  Is there a guide somewhere how to upgrade Ubuntu on Pinebook? dejan 7 3,884 11-16-2018, 12:37 AM
Last Post: icemeister
  KDE Install on new Pinebook, howto? Corkonian 8 4,469 11-08-2018, 02:11 PM
Last Post: Luke
Smile Ubuntu Release Upgrade (16.04 => 16.10 => 17.04) working stohn 19 10,308 10-21-2018, 03:34 AM
Last Post: soupbowl

Forum Jump:

Users browsing this thread: 1 Guest(s)