Python Forum
[split] permission error on pygame install
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] permission error on pygame install
#1
Hello, I am new to Python (Python 3.5.3rc1 (v3.5.3rc1:de530d7f21c0, Jan 2 2017, 06:41:25) [MSC v.1900 64 bit (AMD64)] on win32)
and Pygame (pygame-1.9.3-cp35-cp35m-win_amd64.whl) and I am having issues installing pygame.
I teach, so when Python (32 bit) was installed we selected "All users", so the installation is under "Program files/Python35"

We are working on Windows 7 and  Windows 8.1 environments.
Python works fine.
We receive and error during the installation of Pygame using pip or pip3.
The error is "PermissionError: [WinError 51 Access is denied: 
'c:\\program files\\python35\\Lib\site-packages\\pygame"

I tried using the admin account on the computers and still no luck. Same error.
I would include an image of the error, but I can't seem to include a png.. file only a URL?
Thank you,
pyteach
Reply
#2
how to attach a file

You shouldnt be getting a permission error if you are admin. Are you using an elevated command prompt to run pip in?
Recommended Tutorials:
Reply
#3
You can open a windows terminal in admin mode then pip. I still have to do that on windows 10.
For me I press windows_key + x and click Command Prompt (Admin). Not sure if it is the same or not on 7/8.
Reply
#4
im not sure about win7, but win8 and win10 you can right click on cmd (after you hav already searched it) and select elevate command prompt. Which is a terminal with admin permissions while your in your user account.
Recommended Tutorials:
Reply
#5
I am truly sorry. I have not used forums before. thought that is no excuse. Thank you for helping.
I tried running pip in a command prompt (admin) but received an error that the .whl file was not found in the c:\windows\system32\ path.

"FileNotFoundError: [Errno 2] No such file or directory: 'C:\WINDOWS\\system32\\pygame-1.9.3-cp35-cp35m-win_amd64.whl'

That is true, since the .whl file is in my "program file/Python35/Scripts folder.

I then tried to add the path to the pip install, but that caused the same error.  I'm not sure if I'm entering the path correctly or if pip allows the user to add a path?


"FILENOTFOUNDERROR: [Error 2] No such file or diretory: 'C:\\Program_Files\\Python35\\Scripts\\pygame-1.9.3-cp35-cp35m-win_amd64.whl'


Thank you again,
pyteach
Reply
#6
you can use the path such as

pip install C:\User\USERNAME\Downloads\pygame-1.9.3-cp35-cp35m-win_amd64.whl
Recommended Tutorials:
Reply
#7
You can also look at this post.
Reply
#8
Hi Metulburr, 
Thank you so much.
The user path worked.
I can't thank you enough for all your help and understanding.

Take care,
pyteach
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Pygame attribute error djwilson0495 3 3,870 Feb-18-2021, 03:34 PM
Last Post: michael1789
Big Grin Error installing Pygame-Zero dpa2007 1 3,123 Dec-26-2020, 03:50 PM
Last Post: MK_CodingSpace
  Can't get pygame to install djwilson0495 13 9,899 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  [split] How to display isometric maps with pygame? mattwins 6 6,099 Nov-17-2020, 12:54 PM
Last Post: mattwins
  Trying to install pygame Mac OS x high sierra giladal 2 2,697 Oct-18-2020, 09:27 PM
Last Post: nilamo
  pygame error in my clicker game CrazyMakes 2 2,489 Apr-19-2020, 03:04 AM
Last Post: Windspar
  Error to install pygame skp 1 3,445 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  installing pygame error pylab 1 4,167 Dec-31-2019, 05:44 PM
Last Post: pylab
  [PyGame] pygame image loading error BlueClaw 6 6,291 Dec-10-2019, 08:50 PM
Last Post: BlueClaw
  Problem with music - Pygame.error GaseBall 1 3,135 Nov-28-2019, 07:46 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020