PINE64

Full Version: Install pygame in Ubuntu Mate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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''".
I placed your log in a code block; please do this yourself from now on.

thanks
**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.