[Tutor] 3.0 on Mac

Vincent Davis vincent at vincentdavis.net
Mon Jun 15 19:55:18 CEST 2009

Here is what my .bash_profile looks like, This is in my user directory
# Setting PATH for EPD_Py25 v4.3.0
# The orginal version is saved in .bash_profile.pysave
export PATH

Note that the file "/Library/Frameworks/Python.framework/Versions/Current"
is a symbolic link to the actual python. You could change the smbolic link
or pint the Bash_profile directly to the python you want. I also found it
difficult to understand the PYTHONPATH, As yu see it above Python will look
in my idisk for modules to import. So if I have a file names mymod.py
in /Volumes/iDisk/match/python and I "import mymod" it will find it.

Hope this helps, When I was learning abut python I found it difficult to
find spisific instructins for this. Part of the problem Is that it seems
that most instruction assume some understanding of terminal than I had. I
know little more that what allows me to follow clear instructions.

Vincent Davis

On Thu, Jun 11, 2009 at 9:54 PM, Dave Angel <davea at ieee.org> wrote:

> acfleck  wrote:
>  I'm a Python nubie and having trouble with 3.0.1 on Mac (10.4.11). I did a
>> default install of MacPython 3.0.1. The IDLE.app works fine, but from a
>> Terminal window, the 'python' command still gets me V2.5.3 (the original
>> Apple installed version). A 'python3' command is not recognized. I'd like to
>> know what I need to change to access V3.0.1 from a Terminal window.
> Use the 'which' command to see what versions of python are on your PATH.
>  Then, since you have two different versions of Python you want available,
> create one or more scripts (on your path), to explicitly run the other
> installed versions.  Probably, those scripts can be one line each, though
> you also might conceivably want to set an environment variable or two (such
> as pythonpath)
> As far as I know, the install will not create a script called python3, or
> anything else like it.  That's up to you.  And it's generally not good form
> to hide the system-installed version, since many utilities and scripts might
> depend on that particular version.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090615/e30ed857/attachment-0001.htm>

More information about the Tutor mailing list