为什么有些软件包可以在Pip中升级,而不能在Conda中升级? [英] Why some packages are upgradable in Pip, not in Conda?

查看:72
本文介绍了为什么有些软件包可以在Pip中升级,而不能在Conda中升级?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10下安装了Anaconda.一切正常.我也跑了

I installed Anaconda under Windows 10. Everything is working fine. I also ran

conda upgrade --all

在命令提示符下.

但是,我注意到在命令提示符下键入以下内容:

However, I noticed that when I type this in a command prompt:

pip list -o

我(除其他外)得到

astroid (1.4.7) - Latest: 1.4.8 [wheel]

这意味着软件包 astroid 可以在pip下升级.但是,当我转到Anaconda Navigator并查看可升级包的列表时,没有看到 astroid .(我无法找到查看在Conda下可升级的软件包的命令行方式.

This means package astroid is upgradable under pip. However, when I go to the Anaconda Navigator and look at the list of upgradable packages I do not see astroid in it. (I was not able to find a command line way of seeing which packages are upgradable under Conda).

有人可以解释为什么 astroid 在Pip下而不是Conda下可升级吗?

Can someone explain why astroid appears as upgradable under Pip and not under Conda?

推荐答案

维护的软件包列表Anaconda PyPI 不同.Anaconda软件包列表中的 astroid 似乎尚未更新

The package list maintained by Anaconda is different than that of PyPI. It seems that astroid is not yet updated in the Anaconda package list.

您可以等到Anaconda中有可用的更新,或者可以暂时使用通过 pip提供的版本

You can either wait until the update is available in Anaconda, or you can temporarily use the version available via pip by uninstalling the conda version and installing the pip one:

conda remove astroid
pip install astroid

Anaconda更新后,请反转这两个命令以切回:

When Anaconda has updated, reverse those two commands to switch back:

pip uninstall astroid
conda install astroid

这篇关于为什么有些软件包可以在Pip中升级,而不能在Conda中升级?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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