为什么有些包可以在 Pip 中升级,而不能在 Conda 中升级?
Why some packages are upgradable in Pip, not in Conda?
我在 Windows 10 下安装了 Anaconda。一切正常。我也运行
conda upgrade --all
在命令提示符下。
但是,我注意到当我在命令提示符中键入以下内容时:
pip list -o
我得到(除其他外)
astroid (1.4.7) - Latest: 1.4.8 [wheel]
这意味着包 astroid
可以在 pip 下升级。但是,当我转到 Anaconda Navigator 并查看可升级包列表时,我没有在其中看到 astroid
。 (我找不到命令行方式来查看哪些包在 Conda 下可升级)。
有人可以解释为什么 astroid
在 Pip 下显示为可升级,而在 Conda 下显示为可升级吗?
看起来 Anaconda 尚未更新 astroid
- 他们的 package list shows it as only available for v1.4.7 (select Python 3.5 in the top tab and Ctrl+F astroid
, or look on this page). However, astroid
have updated the PyPI 存储库,Pip 从中获取软件包,因此 v1.4.8 可通过 Pip 而不是通过 Anaconda 获得。
至于为什么没有升级包 - 我不太确定。自发布以来已经有很多时间了,但没有解释 为什么 他们不会升级,所以我真的不能说。不过,如果您需要最新版本,通过 pip 安装应该没问题。
package list maintained by Anaconda is different than that of PyPI. It seems that astroid
尚未在 Anaconda 软件包列表中更新。
您可以等到更新在 Anaconda 中可用,或者您可以 通过卸载 conda 版本并安装 pip one:
conda remove astroid
pip install astroid
当 Anaconda 更新后,反转这两个命令以切换回来:
pip uninstall astroid
conda install astroid
我在 Windows 10 下安装了 Anaconda。一切正常。我也运行
conda upgrade --all
在命令提示符下。
但是,我注意到当我在命令提示符中键入以下内容时:
pip list -o
我得到(除其他外)
astroid (1.4.7) - Latest: 1.4.8 [wheel]
这意味着包 astroid
可以在 pip 下升级。但是,当我转到 Anaconda Navigator 并查看可升级包列表时,我没有在其中看到 astroid
。 (我找不到命令行方式来查看哪些包在 Conda 下可升级)。
有人可以解释为什么 astroid
在 Pip 下显示为可升级,而在 Conda 下显示为可升级吗?
看起来 Anaconda 尚未更新 astroid
- 他们的 package list shows it as only available for v1.4.7 (select Python 3.5 in the top tab and Ctrl+F astroid
, or look on this page). However, astroid
have updated the PyPI 存储库,Pip 从中获取软件包,因此 v1.4.8 可通过 Pip 而不是通过 Anaconda 获得。
至于为什么没有升级包 - 我不太确定。自发布以来已经有很多时间了,但没有解释 为什么 他们不会升级,所以我真的不能说。不过,如果您需要最新版本,通过 pip 安装应该没问题。
package list maintained by Anaconda is different than that of PyPI. It seems that astroid
尚未在 Anaconda 软件包列表中更新。
您可以等到更新在 Anaconda 中可用,或者您可以
conda remove astroid
pip install astroid
当 Anaconda 更新后,反转这两个命令以切换回来:
pip uninstall astroid
conda install astroid