Jump to content

Problem Installing PyGame

- - - - -

  • Please log in to reply
3 replies to this topic

#1
mkjt88

mkjt88

    Newbie

  • Members
  • PipPip
  • 27 posts
Hey guys I am using Python 2.7 on Mac OS X 10.6 and found News pygame - python game development and downloaded pygame-1.9.2pre-py2.6-macosx10.6.mpkg.zip. Now I ran the .zip and unarchived it and installed on my Mac HD. On this page.. http://rene.f0o.com/mywiki/LectureOne near the bottom it shows

Run python. In windows, go to the start bar find python, and select the IDLE(Python GUI) option. In linux, type python at the command line. Now you should see a prompt like >>> This is the interactive interpreter, you'll be able to type into here python code, and see it run. Fun. Now type in:
import pygame
print dir(pygame)
print dir()
That should print a bunch of stuff. The import command tells python to load that module. The print command is used to print stuff. duh. The dir command is really cool. It shows you what stuff is inside the pygame module.

Now when I run this in Idle i get the message

>>> import pygame

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
ImportError: No module named pygame

And when ran in my terminal..

>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygame

Now can anyone tell me what I am doing wrong to get this installed properly.. Thanks.

#2
s1n4

s1n4

    Newbie

  • Members
  • Pip
  • 9 posts
Hi

Pygame-1.9.2pre-py2.6 not work in Python 2.7

You uninstall Python 2.7 and install Python 2.6

Good Luck

#3
JackomoLight

JackomoLight

    Newbie

  • Members
  • PipPipPip
  • 38 posts
get python-3.1 86x or 64x and the corresponding version of pygame at least that worked for me

#4
mkjt88

mkjt88

    Newbie

  • Members
  • PipPip
  • 27 posts
I can't find a version of pygame for python 3. But I continue needing help. I was using python 2.7 and it works fine. Now I try to install other versions after uninstalling 2.7 and IDLE will not work. I can run things from my terminal but IDLE itself will not function. I get an error message as you see here in an attachment. Now I only need this for pygame which does not have a release for anything over 2.6 so any help would be much appreciated.

Attached Files






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users