[split] permission error on pygame install - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Game Development (https://python-forum.io/forum-11.html) +--- Thread: [split] permission error on pygame install (/thread-1739.html) |
[split] permission error on pygame install - pyteach - Jan-23-2017 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 RE: [split] permission error on pygame install - metulburr - Jan-23-2017 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? RE: [split] permission error on pygame install - Mekire - Jan-23-2017 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.
RE: [split] permission error on pygame install - metulburr - Jan-23-2017 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. RE: [split] permission error on pygame install - pyteach - Jan-23-2017 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 RE: [split] permission error on pygame install - metulburr - Jan-23-2017 you can use the path such as pip install C:\User\USERNAME\Downloads\pygame-1.9.3-cp35-cp35m-win_amd64.whl RE: [split] permission error on pygame install - snippsat - Jan-23-2017 You can also look at this post. RE: [split] permission error on pygame install - pyteach - Jan-23-2017 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 |