[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame on OS X 10.4 Tiger



On 10/21/05, thor <thorthor@xxxxxxxxxx> wrote:
> I tried to do this in my bash Terminal:
>
> PATH=$PATH\: /usr/local/bin/python; export PATH
>
> Which opens up Python as command line in the Terminal, but then when I
> quit python and open it again, it is back to 2.3.5.
>
> I haven't got any .bash_profile file, but I've got a file called .bashrc.
>
> This is what's in that file:
>
> PATH=$PATH:/System/Library/Frameworks/Python.framework/Versions/2.3/bin:
> PATH=$PATH:/System/Library/Frameworks/Python.framework/Versions/2.3/bin:/usr/local/bin:
> alias
> scons="/System/Library/Frameworks/Python.framework/Versions/2.3/bin/scons"
>
> Should I add something to it? the /usr/local/bin is already there.

Well, .bashrc probably works too... I don't know if there's any
particular reason to use one or the other, but hey.  Anyway, the
problem is that /usr/local/bin needs to be BEFORE the rest  (and also
the first line in there is redundant).  I'd recommend you replace both
path-setting lines with this:

PATH=/usr/local/bin:/System/Library/Frameworks/Python.framework/Versions/2.3/bin:$PATH

That puts /usr/local/bin at the front of your path, so that when you
type "python", it will use the python 2.4 you've got in /usr/local/bin

Also, normally (in a .bash_profile file) the path-setting line would
start with "export ", but what you've got seems to work as well, and
I'm not enough of a bash expert to understand why it does (or if it
ever wouldn't)...

> Did I hear someone say at some point that Python was a good language for
> beginners?
>
> : )

Yeah, well... Python is a good language for beginners, unfortunately I
think it's in a frustrating state for beginners on the Mac right now,
since the version that comes with Mac OS X is old, and when you
download the tools separately, some things are out of date and others
can be challenging for newbies to get installed and working correctly.
 All-in-all, getting started with python on the Mac is a very
non-Mac-like experience.  Hopefully some headway can be made on this
soon (though I don't know how, or by whom).

--
// jack
// http://www.nuthole.com