Installing Pygame for Mac OS X 10.6.8

后端 未结 5 1657
花落未央
花落未央 2020-11-30 05:01

Using Python 2.7.2. When I try to import pygame I get this error message:

Traceback (most recent call last):
  File \"\", line 1, in 

        
5条回答
  •  余生分开走
    2020-11-30 05:56

    What I'd recomend is using a decent Python IDE, like PyCharm.

    I've installed both the 3.3(x64), 3.3(x86) and the 2.7.6 from python.org with both architectures included.

    All I have to do is to set up an interpreter configuration for each and I can pick and choose on a project by project level.

    For me this is the definite way of smooth Python Development, contra Python Mangling and manual workarounds.

    The Community Version of the PyCharm IDE is even free as in beer! Go get it over at JetBrains Site

    It's a breeze to use and behaves the same across both Windows, Linux and OS X. It also acts as a package manager, so you can install different components straight from the IDE and run Console sessions using different configurations. It also lets you set up virtualenv's easily.

    Enough propaganda! Go try it out yourself instead.

    And yes, I got PyGame working using this approach...

提交回复
热议问题