Why does conda try to update packages with --no-update-dependencies?

后端 未结 2 2108
眼角桃花
眼角桃花 2021-02-12 13:35

Often when I try to install a new package, conda wants to update other packages as well, even though I have added the --no-update-dependencies switch. The updates seem to be \"u

相关标签:
2条回答
  • 2021-02-12 14:13

    Just want to mention that these options are deprecated in new conda versions. For example, in conda version 4.6.7, you should use "conda install --no-deps yourpackage"

    0 讨论(0)
  • 2021-02-12 14:23

    tldr;

    Don't worry about it, your packages are not being updated, only their build numbers, which should be harmless.

    some explanation

    What is being updated is the build number, not the version of each package installed.

    As you can see, it is installing the vs2010_runtime, this is due to conda updating how its packages were built using features. Since you have Python 3.4 (which is built using Visual Studio 2010) it is installing the VS 2010 runtime. It would install the VS 2015 runtime if you were installing Python 3.5.

    Build numbers/strings shouldn't break anyone because they're supposed to be fixes to the build process of that package (eg: you added a flag to the compilation which you didn't intend to).

    It is arguable if conda should update the packages (same version, different build numbers) when --no-update-dependencies is present because you might end up with a bad installation.

    0 讨论(0)
提交回复
热议问题