为什么conda尝试使用--no-update-dependencies更新软件包? [英] Why does conda try to update packages with --no-update-dependencies?

查看:102
本文介绍了为什么conda尝试使用--no-update-dependencies更新软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,当我尝试安装新软件包时,即使我添加了--no-update-dependencies开关,conda也希望更新其他软件包.更新似乎是不必要的"-像大多数时候一样,仅版本号的最后一部分已更改.

今天,即使我添加了--no-update-dependencies开关,我仍想安装mpld3软件包,conda希望将我的python软件包从3.4.4-2版本更新到3.4.4-4.

如何在不接触其他软件包的情况下使conda安装mpld3软件包?

  C:\ ...> conda install -p pyenv --no-update-dependencies mpld3正在获取软件包元数据:....解决包装规格:...........在环境C:\ ... \ pyenv中安装的软件包计划:将下载以下软件包:包装建造--------------------------- | -----------------vs2010_runtime-10.00.40219.1 |0 1.1 MBpython-3.4.4 |4 31.7兆字节mpld3-0.2 |py34_0 123 KB------------------------------------------------------------总计:33.0 MB将安装以下新软件包:mpld3:0.2-py34_0vs2010_runtime:10.00.40219.1-0以下软件包将被更新:python:3.4.4-2->3.4.4-4是否继续([y]/n)? 

解决方案

tldr;

不用担心,您的软件包不会被更新,只会更新其内部版本号,应该应该是无害的.

一些解释

正在更新的是

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)?

解决方案

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.

这篇关于为什么conda尝试使用--no-update-dependencies更新软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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