Hi Ned,
Thanks for your response, I think the path is fine, since which python outputs
the location where macports should install python i.e. /opt/local/bin/python.
also
port list active | fgrep python
python27 @2.7.3 lang/python27
and
port location python27
Port python27 2.7.3_0 is installed as an image in:
/opt/local/var/macports/software/python27/python27-2.7.3_0.darwin_11.x86_64.tbz2
Another problem caused by this installation is that somehow it removes
os.urandom module:
>>> import os
>>> os.urandom
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'urandom'
On Wednesday, September 12, 2012 8:07:43 PM UTC-7, Ned Deily wrote:
> In article ,
>
> azandi wrote:
>
>
>
> > I installed python 2.7.3 using macports on Lion, and used port select
> > python
>
> > python27. However python version still shows 2.7.1.
>
> >
>
> > Any ideas why is that happenning? And how to fix it?
>
>
>
> Macports installs its ports into a separate root. You need to ensure
>
> that the macports bin directory comes first on your shell search path;
>
> by default, it is /opt/local/bin. Try something like this:
>
>
>
> export PATH=/opt/local/bin:$PATH
>
>
>
> Otherwise, use an alias or an absolute path:
>
>
>
> /opt/local/bin/python
>
>
>
> --
>
> Ned Deily,
>
> [email protected]
--
http://mail.python.org/mailman/listinfo/python-list