Tuesday, May 5, 2015

INSTALL PYTHON AND PYGAME IN WINDOWS 7

1. If your pygame or python is not working; take a look at the below tutorial first. If you feel like you have not installed python or pygame properly; then uninstall them and follow the below instructions.

2. If you have not installed Python yet; go to PYTHON DOWNLOADS and download the latest version of Python-2 or Python-3 and install it.
Note: The latest version already include PIP.
Follow the below pics to install Python







3. If you have Python already installed in your system but do not have pip; FOLLOW THIS QUICK AND EASY TUTORIAL and install pip.

4. To download pygame go to PYGAME DOWNLOAD LINK and download the pygame according to the Python version and windows 32 bit or 64 bit.
Follow the below pics to install Pygame





Comments and suggestion are invited. :)

ahaaahcool

11 comments:

  1. Hi #TM#,

    I have 64bit Windows 7 with Python 3.4 installed at C:\Python34
    So I downloaded
    pygame‑1.9.2a0‑cp34‑none‑win_amd64.whl
    from http://www.lfd.uci.e...honlibs/#pygame
    and saved it to C:\Python32\Scripts

    After that I open cmd in administrator mode and navigate to C:\Python32\Scripts and type the command
    pip install pygame-1.9.2a0-cp34-none-win_amd64.whl
    However I get this error:
    pygame-1.9.2a0-cp34-none-win_amd64.whl is not a supported wheel on this platform

    Can you/someone please guide me as to what I'm doing wrong? I'm stuck
    Thanks

    ReplyDelete
    Replies
    1. Hi You are 22 coolz, i didn't get your question; i think it's a typo or you misplaced your file and mis-running pip. :-P
      I mean you downloaded "pygame‑1.9.2a0‑cp34‑none‑win_amd64.whl" and saving and running pip from "C:\Python32\Scripts". why buddy!?

      You should save and run pip from "C:\Python34\Scripts". :)

      Delete
  2. Sorry yes that was a typo only in my message above
    But no typo while executing this command otherwise I wouldn't have entered a nonexistent folder

    Yes I did save it in C:\Python34\Scripts
    and run from there
    [IMG]http://i.imgur.com/yeZqV4Y.png[/IMG]

    But I still get the error.
    Any idea? I'm confused

    ReplyDelete
  3. Umm now I think the python I'm using is 32 bit...:/
    http://i.imgur.com/yXdLmwW.png
    Please verify..

    But I have a 64bit Windows 7 and I'm not sure why I installed 32 bit python 3.4.3

    Now I can't find an .msi file for 32bit pygame for python version 3.4

    Now what?

    ReplyDelete
    Replies
    1. OK, hmm..... then i think this might be the problem. You are using 32 bit Python on a 64 bit windows (that's fine you can use it ); but trying to install a 64 bit wheel. Open the "Python34 commandline" from the start menu in windows and type "import distutils.util; print(distutils.util.get_platform())" if it prints "win32"; then you have installed python 32 bit version for sure. https://www.python.org/downloads/release/python-343/ here you can download x86_64 bit MSI installer for windows. or just use the "32 bit version of pygame wheel".

      Delete
    2. Thanks.
      That totally worked!
      Cheers!

      Delete
  4. Hey,
    I'm using Python27 on windows 8, I have downloaded pip and wheel. I downloaded the 64bit version of pygame (pygame-1.9.2a0-cp35-none-win_amd64.whl) but when I use pip install (in cmd), I get nothing. As in, when I press enter I just have the cursor blinking on the new line. Nothing happens even when I use Ctrl+C. It was like that for half an hour so I closed it.
    I'm not much of an expert on cmd or pygame, so a little help would be great.
    Thanks!

    ReplyDelete
    Replies
    1. bro see what you are doing. Look at the wheel file its pygame(which is the name) then 1.9.2a0 is the version and cp35 is the for which python version that is here python-3.5 which is latest but you have python 2.7 in your windows 8 as per your question. i think you understand now you have to down load the pygame cp27 wheel file. plus additionally check you have 64 bit python and because you are installing amd64 wheel file ok. :) small mistake happens some times even to expert no need to get disheartened keep blasting. good luck.

      Delete
  5. Yea, I saw that and downloaded cp27 and tried to run it, but it still didn't work..

    ReplyDelete
    Replies
    1. Sorry for late answer. Hope you found out by now. But What is the error after installing with 2.7 whl file? Still stuck with cursor blinking?! Then check that you are connected to internet. Offline installation with pip is quite infuriating. :( Also check whether the python installed by you is 64 bit or 32 bit.

      Delete