Pygame installation failure using pip install

I tried: c:/python34/scripts/pip install http://bitbucket.org/pygame/pygame

and got this error:

 Cannot unpack file C:\Users\Marius\AppData\Local\Temp\pip-b60d5tho-unpack\pygame (downloaded from C:\Users\Marius\AppData\Local\Temp\pip-rqmpq4tz-build, conte nt-type: text/html; charset=utf-8); cannot detect archive format Cannot determine archive format of C:\Users\Marius\AppData\Local\Temp\pip-rqmp q4tz-build 

Please, if anyone has any solutions, feel free to share them! I also tried pip install --allow-unverified , but that also gave me an error.

+7
python pip shared-libraries pygame
source share
3 answers

This is the only method that works for me.

 pip install pygame==1.9.1release --allow-external pygame --allow-unverified pygame 

-

These are the steps that lead me to this command (I set them so that people find it easy):

 $ pip install pygame Collecting pygame Could not find any downloads that satisfy the requirement pygame Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pygame to allow). No distributions at all found for pygame 

Then, as suggested, I resolve the external:

 $ pip install pygame --allow-external pygame Collecting pygame Could not find any downloads that satisfy the requirement pygame Some insecure and unverifiable files were ignored (use --allow-unverified pygame to allow). No distributions at all found for pygame 

Therefore, I also admit unchecked:

 $ pip install pygame --allow-external pygame --allow-unverified pygame Collecting pygame pygame is potentially insecure and unverifiable. HTTP error 400 while getting http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml) Could not install requirement pygame because of error 400 Client Error: Bad Request Could not install requirement pygame because of HTTP error 400 Client Error: Bad Request for URL http://www.pygame.org/../../ftp/pygame-1.6.2.tar.bz2 (from http://www.pygame.org/download.shtml) 

So, after visiting http://www.pygame.org/download.shtml , I thought about adding a version number (1.9.1release is currently stable).

-

Hope this helps.

+14
source share

If you have any problems installing pygame error about missing visual studio 10+. I have an answer: The problem is not to have or not have a visual studio, because I try a lot of version, but it does not work. The problem is the file: between tar.gz and .whl so this is the solution:

1) Download file:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

Go here and download the pygame version, pay attention to the x64 or x86 version and the python version. My system is x64 and python is 3.4, so I choose: pygame-1.9.2a0-cp34-none-win_amd64.whl

2) Put it in some folder for installation:

I put it in "C:", so open cmd: and type: cd C: \ (this is the place of change in C :)

3) Install

 pip install C:\pygame-1.9.2a0-cp34-none-win_amd64.whl 

Done!

+4
source share

I realized that the compatible version of Pygame was just damaged or broken. To do this, I had to install a previous version of python to run Pygame. This is actually normal, as most modules are not updated to be compatible with Python 3.4, but it gives me more options.

0
source share

All Articles