在给定的conda环境中将python版本从3.8降级到较低版本 [英] downgrade python version from 3.8 to lower one in a given conda environment

查看:51
本文介绍了在给定的conda环境中将python版本从3.8降级到较低版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个现有的 conda 环境中,python是 3.8 .是否可以将特定环境的python版本从 3.8 降级为 3.6 3.7 ?

In one existing conda environment, the python is 3.8. Is that possible to downgrade the python version for this specific environment from 3.8 to 3.6 or 3.7?

推荐答案

选中此项,打开终端,然后使用以下命令搜索可用版本.

Check this, Open your terminal and search for available versions using the following command.

conda search python

如果您要搜索的python版本可用,请使用命令

If the python version you are searching is available then use the command

conda install python=3.8 (0r 3.6 or 3.7 depending to your requirement)

这将在特定环境中更改python版本.

This will change the python version in a specific environment.

注意:此命令将覆盖默认的python版本.

Note: This command will overwrite the default python version.

我建议您使用以下命令打开新的conda环境.

I suggest you open a new conda environment using the following command.

conda create --name py38 python=3.8 
//This lines will create a new environment named py38

现在,您可以在此环境中工作,而不会干扰其他环境的库.

Now you can work into this environment without interfering with the libraries of the other environment.

希望这会对您有所帮助.

Hope this will help you.

这篇关于在给定的conda环境中将python版本从3.8降级到较低版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆