Why does `conda update --all` not update all?

点点圈 提交于 2020-03-22 06:42:08

问题


Similar to this question, but there's no answer there.

I installed anaconda, and then conda install -c conda-forge geopandas. When I ran import geopandas, I got

>>> import geopandas as gpd
anaconda3/envs/gis/lib/python3.7/importlib/_bootstrap.py:219: 
RuntimeWarning: numpy.dtype size changed, may indicate binary 
incompatibility. Expected 96, got 88 
return f(*args, **kwds)

So, I tried updating all packages of my Anaconda env like conda update --all, but that didn't solve the warnings. What did solve it was updating the specific package: conda update numpy.

So, my question is: what does conda update --all do, that it doesn't update all packages?


回答1:


The conda update documentation states that:

"This command accepts a list of package names and updates them to the latest versions that are compatible with all other packages in the environment." -- emphasis mine

This means that conda update will not update some packages if updating may put the stability of other packages at risk. As such, conda update -all is likely prioritizing stability over more recent builds. Whereas, conda update numpy is prioritizing the numpy update with minimal/no regard to overall stability.

As a side note, I have previously broken package stability for other installs doing exactly that -- updating a single package to its most recent version.



来源:https://stackoverflow.com/questions/53792095/why-does-conda-update-all-not-update-all

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!