如何在 Anaconda 发行版上将 Python 版本更改为 2.7.8?

How to change Python version to 2.7.8 on Anaconda distribution?

我有一些代码需要 python 2.7.8。我使用的是安装了 2.7.6 的 Anaconda Python 发行版。我是 运行 Yosemite OSX 10.10.2.

vt102:bin steigler$ conda info
Current conda install:

             platform : osx-64
        conda version : 3.4.1
       python version : 2.7.6.final.0
     root environment : /Users/slater/anaconda  (writable)
  default environment : /Users/slater/anaconda
     envs directories : /Users/slater/anaconda/envs
        package cache : /Users/slater/anaconda/pkgs
         channel URLs : http://repo.continuum.io/pkgs/free/osx-64/
                        http://repo.continuum.io/pkgs/pro/osx-64/
          config file : None
    is foreign system : False

Anaconda 网站提到“在 Python 2.6、2.7、3.3、3.4 之间轻松切换,并试验多个版本的库

谁能解释一下如何说服 Anaconda 使用 2.7.8 解释器而不是 2.7.6?

您必须安装要使用的 Python 版本:

conda install python=2.7.8