使用 conda 升级到 python 3.8 [英] Upgrade to python 3.8 using conda

查看:49
本文介绍了使用 conda 升级到 python 3.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python 3.8.0 已经发布,但我还没有找到任何关于如何使用 conda 更新到 python 3.8 的帖子——也许他们会等待正式发布?有什么建议吗?

Python 3.8.0 is out, but I haven't been able to find any post on how to update to python 3.8 using conda - maybe they will wait for the official release? Any suggestions?

推荐答案

你可以在 conda 中使用命令将你的 python 版本更新到 3.8

You can update your python version to 3.8 in conda using the command

conda install -c anaconda python=3.8

根据 https://anaconda.org/anaconda/python.虽然不是所有的包都支持 3.8,但是运行

as per https://anaconda.org/anaconda/python. Though not all packages support 3.8 yet, running

conda update --all

可以解决一些依赖失败.您还可以使用此命令创建一个名为 py38 的新环境

may resolve some dependency failures. You can also create a new environment called py38 using this command

conda create -n py38 python=3.8

编辑 - 请注意,conda install 选项可能需要一段时间才能解决环境问题,如果你试图在中途中止这个,你将失去你的 Python 安装(通常这意味着它会求助于非 conda 预安装系统 Python 安装).

Edit - note that the conda install option will potentially take a while to solve the environment, and if you try to abort this midway through you will lose your Python installation (usually this means it will resort to non-conda pre-installed system Python installation).

这篇关于使用 conda 升级到 python 3.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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