Install pygame in Ubuntu Mate - Printable Version

+- PINE64 (
+-- Forum: Pinebook (
+--- Forum: Linux on Pinebook (
+--- Thread: Install pygame in Ubuntu Mate (/showthread.php?tid=5061)

Install pygame in Ubuntu Mate - pkgAstronaut - 08-30-2017

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''".

RE: Install pygame in Ubuntu Mate - MarkHaysHarris777 - 08-30-2017

I placed your log in a code block; please do this yourself from now on.


RE: Install pygame in Ubuntu Mate - pkgAstronaut - 08-31-2017

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.