当我输入时:
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.
>>>
Use
osx$ port select --list python
列出可用的 Python 安装。
然后使用“端口选择”的“--set”选项来设置您要使用的端口。
osx$ sudo port select --set python python27
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)