Total Pageviews

Friday, 19 February 2016

mac系统里的python的可执行文件的真实位置


yudeMacBook-Air:~ brite$ ls /System/Library/Frameworks/Python.framework/Versions/2.7/
Extras Mac Resources bin lib
Headers Python _CodeSignature include
yudeMacBook-Air:~ brite$
 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python --version
Python 2.7.6
yudeMacBook-Air:~ brite$ /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 --version
Python 2.7.6
yudeMacBook-Air:~ brite$ /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 --version
Python 2.7.6
yudeMacBook-Air:~ brite$ ls /System/Library/Frameworks/Python.framework/Versions/
2.3 2.5 2.6 2.7 Current
yudeMacBook-Air:~ brite$ ls /System/Library/Frameworks/Python.framework/Versions/current/
Extras Mac Resources bin lib
Headers Python _CodeSignature include
yudeMacBook-Air:~ brite$ ls /System/Library/Frameworks/Python.framework/Versions/current/bin/
2to3 pydoc2 pythonw
2to3-2 pydoc2.7 pythonw2
2to3-2.7 python pythonw2.7
2to32.7 python-config smtpd.py
idle python2 smtpd2.7.py
idle2 python2-config smtpd2.py
idle2.7 python2.7
pydoc python2.7-config
yudeMacBook-Air:~ brite$ /System/Library/Frameworks/Python.framework/Versions/current/bin/python --version
Python 2.7.6
yudeMacBook-Air:~ brite$ /System/Library/Frameworks/Python.framework/Versions/current/bin/python2 --version
Python 2.7.6
yudeMacBook-Air:~ brite$ /System/Library/Frameworks/Python.framework/Versions/current/bin/python2.7 --version
Python 2.7.6
yudeMacBook-Air:~ brite$