Which python??

Ryan Schmidt ryandesign at macports.org
Sat Oct 19 11:30:26 PDT 2013


On Oct 19, 2013, at 13:20, Bruce Johnson <bruce.desertrat at gmail.com> wrote:

> So I did: 
> 
> bruces-Mac-Pro:Dropbox johnson$ sudo port select --set python python33
> dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
> Password:
> Selecting 'python33' for 'python' succeeded. 'python33' is now active.

This should have made /opt/local/bin/python a symlink to /opt/local/bin/python3.3


> Check it:
> 
> bruces-Mac-Pro:Dropbox johnson$ python -V
> Python 2.7.2
> 
> But it appears that it's still 2.72
> 
> bruces-Mac-Pro:Dropbox johnson$ which python
> /opt/local/bin/python
> 
> And the python I'm using is the on in the MacPorts /opt/local directory

Odd. What if you run:

/opt/local/bin/python -V


> bruces-Mac-Pro:Dropbox johnson$ python33 -V
> -bash: python33: command not found
> 
> And I cannot run python33 ?

The Python 3.3 executable is "python3.3", not "python33". You can verify this by using "port contents python33".




More information about the macports-users mailing list