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

Viewed 21786

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 "unnecessary" - like most of the time only the last part of the version number has changed.

Today I wanted to install the mpld3 package and conda wants to update my python package from version 3.4.4-2 to 3.4.4-4, even though I have added the --no-update-dependencies switch.

How can I make conda install the mpld3 package without touching my other packages?

C:\...>conda install -p pyenv --no-update-dependencies mpld3
Fetching package metadata: ....
Solving package specifications: ...........

Package plan for installation in environment C:\...\pyenv:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    vs2010_runtime-10.00.40219.1|                0         1.1 MB
    python-3.4.4               |                4        31.7 MB
    mpld3-0.2                  |           py34_0         123 KB
    ------------------------------------------------------------
                                           Total:        33.0 MB

The following NEW packages will be INSTALLED:

    mpld3:          0.2-py34_0
    vs2010_runtime: 10.00.40219.1-0

The following packages will be UPDATED:

    python:         3.4.4-2 --> 3.4.4-4

Proceed ([y]/n)?
2 Answers

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"

Related