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

查看:33
本文介绍了如何在 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= 应该可以.

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

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

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

来源

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

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