如果某些软件包将被降级或删除,运行“ conda update anaconda”是否安全?

时间:2019-10-11 00:44:43

标签: python python-3.x anaconda conda

这是我运行conda update anaconda时的输出。

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-slugify-1.2.6       |             py_0           6 KB  conda-forge
    ------------------------------------------------------------
                                           Total:           6 KB

The following packages will be REMOVED:

  text-unidecode-1.2-py_0

The following packages will be DOWNGRADED:

  python-slugify                                 3.0.3-py_0 --> 1.2.6-py_0

过去,运行此命令时,我从未见过要删除和/或降级的软件包。如果某些软件包将被降级或删除,我应该继续吗?但是,如果我不继续,将来如何更新anaconda软件包?

我正在Windows 10上运行python v3.7。

1 个答案:

答案 0 :(得分:0)

我会回答我自己的问题。该解决方案可以在我的PC上运行。

在Windows 10上运行以下命令;

$ conda update anaconda
$ conda install text-unidecode
$ conda update python-slugify 

运行命令后,将重新安装text-unidecode,将python-slugify升级回其最新版本,但将text-unidecode降级至较低版本。

到目前为止,我的anaconda包装没有任何损坏。经过一切测试,一切正常。

我强调这在我的PC上有效。我不能保证此答案对遇到与我遇到相同问题的其他人有用。