使用 anaconda 更新到 python 3.7
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46939562/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
update to python 3.7 using anaconda
提问by Dnaiel
Python 3.7alpha version is out, but I haven't been able to find any post on how to update to python 3.7 using Anaconda - maybe they will wait for the official release? Any suggestions?
Python 3.7alpha 版本已经发布,但我还没有找到任何关于如何使用 Anaconda 更新到 Python 3.7 的帖子——也许他们会等待正式版本?有什么建议?
采纳答案by darthbith
Python 3.7 is now available to be installed, but many packages have not been updated yet. As noted by another answer here, there is a GitHub issue tracking the progress of Anaconda building all the updated packages.
Python 3.7 现在可以安装了,但是很多包还没有更新。正如这里的另一个答案所指出的,有一个 GitHub 问题跟踪 Anaconda 构建所有更新包的进度。
Until someone creates a conda package for Python 3.7, you can't install it. Unfortunately, something like 3500 packages show up in a search for "python" on Anaconda.org (https://anaconda.org/search?q=%22python%22) so I couldn't see if anyone has done that yet.
在有人为 Python 3.7 创建 conda 包之前,您无法安装它。不幸的是,在 Anaconda.org ( https://anaconda.org/search?q=%22python%22)上搜索“python”时会出现 3500 个包之类的东西,所以我不知道是否有人已经这样做了。
You might be able to build your own package, depending on what OS you want it for. You can start with the recipe that conda-forge uses to build Python: https://github.com/conda-forge/python-feedstock/
您或许可以构建自己的软件包,具体取决于您想要的操作系统。您可以从 conda-forge 用于构建 Python 的配方开始:https: //github.com/conda-forge/python-feedstock/
In the past, I think Continuum have generally waited until a stable release to push out packages for new Pythons, but I don't work there, so I don't know what their actual policy is.
过去,我认为 Continuum 通常等到稳定版本推出新 Python 的软件包,但我不在那里工作,所以我不知道他们的实际政策是什么。
回答by mcguip
This can be installed via conda with the command conda install -c anaconda python=3.7
as per https://anaconda.org/anaconda/python.
这可以通过使用命令康达安装conda install -c anaconda python=3.7
按照https://anaconda.org/anaconda/python。
Though not all packages support 3.7 yet, running conda update --all
may resolve some dependency failures.
尽管并非所有软件包都支持 3.7,但运行conda update --all
可能会解决一些依赖项失败。
回答by stephenb
To see just the Python releases, do conda search --full-name python
.
要仅查看 Python 版本,请执行conda search --full-name python
.
回答by amauro
The September 4th release for 3.7recommends the following:
conda install python=3.7 anaconda=custom
If you want to create a new environment, they recommend:
如果要创建新环境,他们建议:
conda create -n example_env numpy scipy pandas scikit-learn notebook
anaconda-navigator
conda activate example_env
回答by soldcake
conda create -n py37 -c anaconda anaconda=5.3
seems to be working.
似乎正在工作。
回答by Tom.chen.kang
run conda navigator, you can upgrade your packages easily in the friendly GUI
运行 conda navigator,您可以在友好的 GUI 中轻松升级您的软件包