【发布时间】:2012-01-02 08:36:24
【问题描述】:
当我进入时:
port select --list python
这是结果:
Available versions for python:
none
python25 (active)
python25-apple
python26-apple
python27
python27-apple
我想当我使用 python 时,我会使用版本2.5。相反,当我输入“python”时,2.7 版似乎处于活动状态。如何将其更改为 2.5 版?
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
【问题讨论】:
-
你确定你没有使用预装的python吗? “which python”返回什么?
-
可能是预装的python:/usr/bin/python
标签: python version macports python-2.7 python-2.5