PINE64
Install pygame in Ubuntu Mate - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76)
+--- Forum: Linux on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=79)
+--- 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:

Code:
"Exception:
Traceback (most recent call last):
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
   status = self.run(options, args)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
   prefix=options.prefix_path,
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
   **kwargs
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/req_install.py", 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/req_install.py", line 1064, in move_wheel_files
   isolated=self.isolated,
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
   clobber(source, lib_dir, True)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
   ensure_dir(destdir)
 File "/home/pine64/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
   os.makedirs(path)
 File "/usr/lib/python2.7/os.py", 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.

thanks


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

**Update**
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.
Code:
sudo -H pip install --upgrade pip

Then I was able to install pygame.
Code:
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.