Python Versions on Mac

安稳与你 提交于 2019-12-03 11:14:09
duskwuff
  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.

  1. I think that is Python 2.7 but you can check typing python on a command terminal. It will tell you the version.
  2. I couldn't tell that you can deleting it, because I don't know what it has... can you give more info about it?
  3. Just type "which python" and it will tell you
  4. You should use virtualenv and pip: http://jontourage.com/2011/02/09/virtualenv-pip-basics/
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!