Ich habe Python über Mac-Ports installiert.
sudo port install python33
Ich habe dann gemacht:
sudo port select --set python python33
und bekam:
Selecting 'python33' for 'python' succeeded. 'python33' is now active.
Wenn ich jedoch which python
bekomme:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
und dafür which python3
bekomme ich:
/Library/Frameworks/Python.framework/Versions/3.1/bin/python3
Was habe ich falsch gemacht?
Wenn ich tue: port select --list python
Ich bekomme:
Available versions for python: none python25-apple python33 (active)
Wenn ich das tue type -a python
, bekomme ich:
python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python python is /opt/local/bin/python python is /usr/bin/python python is /usr/local/bin/python
Wenn ich folgendes eingebe: echo $ PATH, bekomme ich:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/X11R6/bin