问题描述
我在 Windows 上安装了 Anaconda(不是 miniconda)Python 2.7.我想将安装的 Python 版本更新到最新的次要版本(2.7.9),我看到 conda
配置使用的频道中提供了该版本.但是,输入 conda update python
基本上是说:
I have an Anaconda (not miniconda) Python 2.7 install on Windows. I would like to update the version of Python installed to the latest minor version (2.7.9), which I see is available in the channels that conda
is configured to use. However, typing conda update python
basically says:
# All requested packages already installed.
# packages in environment at C:Anaconda:
#
python 2.7.5 2
如何在 Windows 上更新到 Python 的另一个次要版本?我猜由于 conda
是用 Python 编写的,而 Windows 不允许您覆盖或删除打开的文件,这在 Windows 上可能会有点困难......但是有可能吗?
How does one update to another minor version of Python on Windows? I guess that since conda
is written in Python and Windows does not let you overwrite or delete open files, that might be slightly difficult to do on Windows... But is it possible?
推荐答案
你说得对,Windows 不会让 conda 在根环境下更新 Python.唯一的选择是使用 conda create
创建一个新环境.否则,现在,您将不得不重新安装 Anaconda 以更新根环境 Python.我们正在研究一种在根环境中更新 Python 的方法,但还没有完成.
You are right that Windows won't let conda update Python in the root environment. The only option is to create a new environment with conda create
. Otherwise, for now, you will have to reinstall Anaconda to update the root environment Python. We are working on a way to update Python in the root environment, but it isn't finished yet.
这篇关于在 Windows 上将 Anaconda 的根 Python 更新到较新的次要版本没有任何作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!