I've installed Python 2.7 (32-bit) version on my mac with an apparently successful installation (according to the installer), but when I try to locate it in System/Library/Frameworks/Python.framework/Versions the versions only go up to 2.6. From the terminal, however, I get:
Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)
[GCC 4.0.1 (Apple Inc. build 5494)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.7/site-packages', '/usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.7/site-packages/wx-2.8-mac-unicode', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages'开发者_StackOverflow, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.7']
Any explanation as to why this is the case would be greatly appreciated, thanks.
As you can see, it's been installed in
/Library/Frameworks
rather than
/System/Library/Frameworks
Although I've never given it too much thought, I assume the former is for user-supplied frameworks, and the latter for "official" frameworks supplied by system patches.
For anyone who has done something bad to its /Python.Frameworks/....
Try to install Python again from Python's website, using the installer. https://www.python.org/downloads/release/python-2713/
精彩评论