0

I am trying to install Pygame for Python 3.5.1, but it tells me to upgrade to the new version of pip. "You are currently using 7.1.2, use 8.1.2".

Here is a screen shot of it: Python 3.5.1 pip

Another screenshot

Paul Oliver
  • 7,531
  • 5
  • 31
  • 34
Blaaaaa
  • 1
  • 3

3 Answers3

1

The error clearly states Access Denied.
Try to run cmd/powershell as administrator.

The installation error is not because of pip , though you should still upgrade pip
python -m pip install --upgrade pip

Pygame does not have python3.5 support yet. Check the binaries here

Pygame binaries

Try to use Python version 3.4 or 2.7 and then install pygame.

EDIT

You can find unofficial pygame binaries for several Python versions including Python3.5 here. So if you do not find the official binary, you could try the appropriate file from the above link.

Note: The binaries given there are whl files. So you need to install them using pip.

Example: Assuming you have 32-bit Python installation, run pip install pygame-1.9.2b1-cp35-cp35m-win32.whl See this answer for more detailed instructions.

Community
  • 1
  • 1
formatkaka
  • 1,278
  • 3
  • 13
  • 27
  • I did do that...this is what it says Could not find a version that satisfies the requirement pygame-1.9.2a0-cp35-none-win32 (from versions: ) No matching distribution found for pygame-1.9.2a0-cp35-none-win32 You are using pip version 7.1.2, however version 8.1.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. – Blaaaaa Jun 06 '16 at 04:19
  • Updated the answer. – formatkaka Jun 07 '16 at 03:55
0

Pip seems to be having a permission problem creating this directory: c:\program files (x86)\python35-32\Lib\site-packages\pygame

Here are some things you can try:

  1. Navigate to that directory and see if it already exists. If it does exist, then try deleting it.
  2. Try running pip as an administrator. Right click the command prompt icon and select run as administrator. Your path variables might not be set for the administrator, so you many need to give the full path for pip. In your python folder, it should be in a folder called scripts.
  3. Since you're using Windows, you can also try the binary installers here: http://www.pygame.org/download.shtml
  4. If nothing works you can try installing a different version of Python. I use Python 2.7.8 with pygame.
  • There is no folder called pygame in site-packages – Blaaaaa Jun 04 '16 at 15:12
  • @Blaaaaa Then it must be a permission problem creating the directory. Did you try running pip as an administrator? Are you able to use pip to install other packages? Did you try the binary installers? – Shaymin Gratitude Jun 04 '16 at 16:28
-1

It was a problem based on the admin command run program and I figures it out.

Blaaaaa
  • 1
  • 3