conda 安装降级 python 版本
conda install downgrade python version
我正在尝试通过 conda install python=3.3
降级 anaconda 的 python 版本,但出现以下错误:
~/anaconda3/bin$ ./conda install python=3.3
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- gevent -> python 2.6*
- python 3.3*
Use "conda info <package>" to see the dependencies for each package.
如何解决与包的冲突?
您可以使用以下命令使用其他版本的 Python 创建环境:
conda create --name py33 python=3.3
source activate py33
如果要设置特定版本,可以这样使用:
WARNING: This command will overwrite the default python version system-wise
conda install python=3.6
要创建特定版本的环境,您可以这样做:
conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda # set custom env name
The anaconda
at the end allows the env to use all anaconda packages
有关详细信息,请参阅 Anaconda documentation
首先使用命令python --version
检查当前版本。然后在 anaconda 提示符下键入命令 conda search python
,它将列出迄今为止可用的所有 python 版本。然后从该列表 select 您的版本并键入 conda install python=3.5.2
或您选择的任何一个
在anaconda中有两种降级python的方法。
1。在活动环境中降级python
(这可能会导致与更高 python 版本的安装包发生冲突)
conda activate nameOfYourEnvironment
conda install python=3.3
2。创建新环境
(这是一种更安全的方式,但需要重新安装所有必要的包)
conda activate base
conda create --name env_name python=3.3
提示:在创建新环境之前使用conda list
获取实际环境中所有已安装包的名称。
如果您想检查您的安装环境,请执行以下操作:
conda env list
如果您在安装时遇到问题,请确保 运行 以 shell 管理员身份(始终推荐)。
我正在尝试通过 conda install python=3.3
降级 anaconda 的 python 版本,但出现以下错误:
~/anaconda3/bin$ ./conda install python=3.3
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- gevent -> python 2.6*
- python 3.3*
Use "conda info <package>" to see the dependencies for each package.
如何解决与包的冲突?
您可以使用以下命令使用其他版本的 Python 创建环境:
conda create --name py33 python=3.3
source activate py33
如果要设置特定版本,可以这样使用:
WARNING: This command will overwrite the default python version system-wise
conda install python=3.6
要创建特定版本的环境,您可以这样做:
conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda # set custom env name
The
anaconda
at the end allows the env to use all anaconda packages
有关详细信息,请参阅 Anaconda documentation
首先使用命令python --version
检查当前版本。然后在 anaconda 提示符下键入命令 conda search python
,它将列出迄今为止可用的所有 python 版本。然后从该列表 select 您的版本并键入 conda install python=3.5.2
或您选择的任何一个
在anaconda中有两种降级python的方法。
1。在活动环境中降级python
(这可能会导致与更高 python 版本的安装包发生冲突)
conda activate nameOfYourEnvironment
conda install python=3.3
2。创建新环境
(这是一种更安全的方式,但需要重新安装所有必要的包)
conda activate base
conda create --name env_name python=3.3
提示:在创建新环境之前使用conda list
获取实际环境中所有已安装包的名称。
如果您想检查您的安装环境,请执行以下操作:
conda env list
如果您在安装时遇到问题,请确保 运行 以 shell 管理员身份(始终推荐)。