Why does my python installation recognize /Library/Python/2.7/site-packages/?
问题 I have installed Python using Homebrew. I would like for this installation of python to recognize only one site-pakages directory -- /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages However, when I start the python shell and give the command print [f for f in sys.path if f.endswith('packages')] I get the following output: ['/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '