[Tutor] ipython, PYTHONPATH, on a MAC

Kent Johnson kent37 at tds.net
Tue Feb 16 19:42:17 CET 2010


On Tue, Feb 16, 2010 at 10:46 AM, John [H2O] <washakie at gmail.com> wrote:
>
> Hello,
>
> I'm not a Mac user, but I'm a promoter of Python! I have a good friend using
> a Mac who's becoming sceptical of python due to frustrations with the
> PYTHONPATH. I'm trying to help...
>
> Everything is fine running vanilla python. Importing modules works fine. But
> in ipython, the module paths need to be appended individually. I can't even
> set a module directory into which ipython will look recursively for modules.

Python never searches recursively for modules, a module or package
must me in a directory which is in sys.path.

> There is nothing custom set in .ipython/ipythonrc or ipy_user_conf.py
>
> The PYTHONPATH variable doesn't need to be set using vanilla python. The
> path settings are set somehow, however (I can see this from import sys;
> sys.path). I'm not sure where this is all happening.

So sys.path is different when running ipython? This is all very
strange. I use Python on Mac OS X with ipython and I don't set
PYTHONPATH at all.

How do you start ipython?

Kent

> Any ideas on the best way to set the PYTHONPATH for a mac?
>
> Thanks!
> --
> View this message in context: http://old.nabble.com/ipython%2C-PYTHONPATH%2C-on-a-MAC-tp27610302p27610302.html
> Sent from the Python - tutor mailing list archive at Nabble.com.
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list