如何在Anaconda中更改python版本? [英] How to change python version in Anaconda?

查看:404
本文介绍了如何在Anaconda中更改python版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试进行深度学习.我安装了Anaconda以使用jupyter,并且通常不关心自己安装所有这些软件包,例如matplotlib等.但是我无法安装tensorflow,因为它仅适用于Python 3.4、3.5或3.6,但我具有3.7.在我了解了它之后,我安装了python 3.6.8.我卸载了Anaconda,然后再次安装,没有任何更改.之后,我使用了此命令

I am trying to get into deep learning. I installed Anaconda to use jupyter and generally not to care about installing all of those packages like matplotlib etc myself. But I cannot install tensorflow as it works only with Python 3.4, 3.5, or 3.6 but I have 3.7. After I read about it I installed python 3.6.8. I uninstalled Anaconda and installed it again, nothing changed. After that, I used this command

conda install python = 3.6.8

conda install python=3.6.8

大概为它安装python 3.6.8(我在网络上的某个地方找到了这个解决方案).该命令有效,但未更改任何内容.请帮助

to presumably install python 3.6.8 for it (I found this solution somewhere on the web). The command worked but didn't change anything. Please help

推荐答案

更好的(推荐)替代方案是创建所需Python版本的虚拟环境,然后使用该环境运行Tensorflow和其他脚本.

A better (recommended) alternative is to create a virtual environment of the desired Python version and then use that environment to run Tensorflow and other scripts.

为此,您可以按照此处.

但是,如果您不想创建一个单独的环境,那么conda install python=<version>应该可以.

BUT, if you don't want to create a separate environment, then conda install python=<version> should do.

OR (不推荐),您可以下载捆绑了所需Python版本的最新" Anaconda安装程序.

OR (not recommended) you can download the "latest" Anaconda installer with your required Python version bundled.

来源

这篇关于如何在Anaconda中更改python版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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