Python 尽管 运行 `conda install` 但软件包没有升级
Python package isnt upgraded despite running `conda install`
我有一个名为 Vik
的 conda 环境。安装的软件包之一是 TBB
(tbb=2018.0.5
)。我想升级到版本 2019.5
或更高版本因为我的代码 returns 这个警告。 NumbaWarning: The TBB threading layer requires TBB version 2019.5 or later
因此,我继续安装了最新的 TBB
(至少我是这么认为的)。我没有保留原始消息日志,但对我来说看起来很正常。我的印象是该软件包已成功安装。当我再次尝试安装时,这就是我得到的结果
(base) C:\Windows\system32>conda activate Vik
(Vik) C:\Windows\system32>conda install -c conda-forge tbb
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
不过看来我还是叫老版本2018.0.5
。当我 运行 我的应用程序和 conda env export -n Vik > environment.yml
生成以下列表时,我需要升级 tbb
的 numba 警告仍然存在。在下面列表的底部,您可以清楚地看到该软件包尚未更新。请注意,该包没有出现在下面显示的 environment.yml
的 pip 部分下,因此它应该是一个 conda 包。
我做错了什么?
name: Vik
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- anyio=3.2.0=py37h03978a9_0
- argon2-cffi=20.1.0=py37he774522_1
- async_generator=1.10=py37h28b3542_0
- attrs=21.2.0=pyhd3eb1b0_0
- babel=2.9.1=pyh44b312d_0
- backcall=0.2.0=py_0
.....
.....
.....
- sqlite=3.35.3=h2bbff1b_0
- tbb=2018.0.5=he980bc4_0
- terminado=0.9.1=py37_0
conda install -c conda-forge tbb
指令转换为命令式
With the channel conda-forge prioritized, ensure that the currently activated environment has some version of tbb
installed.
由于 tbb
已经安装,该指令已经满足。
如果您想要更新的版本,请使用 conda update -c conda-forge tbb
或指定一个版本,例如 conda install -c conda-forge tbb=2021
。
我有一个名为 Vik
的 conda 环境。安装的软件包之一是 TBB
(tbb=2018.0.5
)。我想升级到版本 2019.5
或更高版本因为我的代码 returns 这个警告。 NumbaWarning: The TBB threading layer requires TBB version 2019.5 or later
因此,我继续安装了最新的 TBB
(至少我是这么认为的)。我没有保留原始消息日志,但对我来说看起来很正常。我的印象是该软件包已成功安装。当我再次尝试安装时,这就是我得到的结果
(base) C:\Windows\system32>conda activate Vik
(Vik) C:\Windows\system32>conda install -c conda-forge tbb
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
不过看来我还是叫老版本2018.0.5
。当我 运行 我的应用程序和 conda env export -n Vik > environment.yml
生成以下列表时,我需要升级 tbb
的 numba 警告仍然存在。在下面列表的底部,您可以清楚地看到该软件包尚未更新。请注意,该包没有出现在下面显示的 environment.yml
的 pip 部分下,因此它应该是一个 conda 包。
我做错了什么?
name: Vik
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- anyio=3.2.0=py37h03978a9_0
- argon2-cffi=20.1.0=py37he774522_1
- async_generator=1.10=py37h28b3542_0
- attrs=21.2.0=pyhd3eb1b0_0
- babel=2.9.1=pyh44b312d_0
- backcall=0.2.0=py_0
.....
.....
.....
- sqlite=3.35.3=h2bbff1b_0
- tbb=2018.0.5=he980bc4_0
- terminado=0.9.1=py37_0
conda install -c conda-forge tbb
指令转换为命令式
With the channel conda-forge prioritized, ensure that the currently activated environment has some version of
tbb
installed.
由于 tbb
已经安装,该指令已经满足。
如果您想要更新的版本,请使用 conda update -c conda-forge tbb
或指定一个版本,例如 conda install -c conda-forge tbb=2021
。