Python Versions on Mac

前端 未结 2 703
情书的邮戳
情书的邮戳 2021-02-14 00:08

I\'m working on Mac Os 10.7 (Lion) and I have some questions:

  1. What is the pre-installed version of python on Lion?
  2. I\'ve been working on this computer for
2条回答
  •  眼角桃花
    2021-02-14 00:17

    1. Lion uses Python 2.7 by default; 2.5 and 2.6 are also available.

    2. /Library/Frameworks/Python.framework does not exist on a stock install of Lion. My guess is that you've ended up with this by installing some application.

    3. The default Python install is primarily installed in /System/Library/Frameworks/Python.framework, although some components are located elsewhere.

    4. Yes - you can brew install python@2 to get a Python 2.7 separate from the system version, or brew install python to get Python 3.7. Both will install to /usr/local, like any other Homebrew recipe.

提交回复
热议问题