>>> import sys >>> sys.prefix '/System/Library/Frameworks/Python.framework/Versions/3.5' 

Read more of this post