我对 OS X 上的 Python 有些困惑。我不知道笔记本电脑的前任所有者是否使用 MacPort 安装了 MacPython。 我记得 OSX 有一个内置版本的 Python。我尝试使用 type -a python
,结果返回:
python is /usr/bin/python
python is /usr/local/bin/python
但是在这些位置都运行Python后,我得到了[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
。它们是否都是指向mac提供的相同内置Python?
我还读到说安装MacPython后,会
A MacPython 2.5 folder in your Applications folder. In here you
find IDLE, the development environment that is a standard part of
official Python distributions...
我查看了Applications
目录,发现其中有一个MacPort
文件夹,里面有python2.6
和上面提到的东西。但是运行IDLE时,我发现与上面相同的消息。
嗯,我有点困惑。哪个是哪个?