当我进入:
port select --list python
Run Code Online (Sandbox Code Playgroud)
这是结果:
Available versions for python:
none
python25 (active)
python25-apple
python26-apple
python27
python27-apple
Run Code Online (Sandbox Code Playgroud)
我以为当我使用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.
>>>
Run Code Online (Sandbox Code Playgroud) 我已经使用MacPorts卸载并重新安装了python_select,但它不会出现在/ opt/local/bin中.因此,我在尝试运行时遇到"未找到命令"错误.然而,MacPorts坚持认为它已安装.甚至尝试过卸载-f和port clean --all python_select.
是否有更激烈的步骤将其从MacPorts中删除并尝试重新安装?