python location on mac osx

前端 未结 12 1862
失恋的感觉
失恋的感觉 2020-11-28 02:02

I\'m a little confused with the python on osx. I do not know if the previous owner of the laptop has installed macpython using macport. And I remembered that osx has an buil

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 02:48

    On Mac OS X, it's in the Python framework in /System/Library/Frameworks/Python.framework/Resources.

    Full path is:

    /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
    

    Btw it's easy to find out where you can find a specific binary: which Python will show you the path of your Python binary (which is probably the same as I posted above).

提交回复
热议问题