简体   繁体   English

无法在我的 conda 环境中更改 python 的版本

[英]Can't change the version of python in my conda environment

I am trying to change the version of python running my conda environment.我正在尝试更改运行我的 conda 环境的 python 的版本。

I activate the environment by executing:我通过执行以下命令激活环境:

conda activate medcat

and I attempt to change the python version by executing:我尝试通过执行以下命令更改 python 版本:

conda install python=3.6.1

This leads to conda attempting to install the python=3.6.1 as if it were a package and I get the following error:这导致 conda 尝试安装 python=3.6.1,就好像它是 package 一样,我收到以下错误:

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.6.1

Am I missing something?我错过了什么吗? This doesn't seem like the standard behaviour for anaconda.这似乎不是 anaconda 的标准行为。 Furthermore if I try to create a completely new environment by executing:此外,如果我尝试通过执行创建一个全新的环境:

conda create --name medcat2 python=3.6.1

I get the exact same error.我得到完全相同的错误。

Typing conda search python should give you a list of available python versions.键入conda search python应该会为您提供可用 python 版本的列表。 For me Version 3.6.1 isn't in there.对我来说,版本 3.6.1 不在那里。 However version 3.6.2 is and I also could install it with conda install python=3.6.2但是版本 3.6.2 是,我也可以使用conda install python=3.6.2安装它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM