gpt4 book ai didi

python - 如何为 Windows 的 pyculib 添加正确的分发 channel ?

转载 作者:行者123 更新时间:2023-12-03 19:19:19 26 4
gpt4 key购买 nike

我正在尝试通过 conda 包分发安装 Nvidia 的 GPU python 包,但我遇到了以下错误:

PackagesNotFoundError: The following packages are not available from
current channels:

- pyculib

Current channels:

- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch

CuPy 和 pyculib 包的正确分发 channel 是什么?

最佳答案

pyculib 收集在免费 channel 。但是 free channel 在 conda 4.7 中被移除了。

Quote from Why We Removed the “Free” Channel in Conda 4.7

One of the changes we made in Conda 4.7 was the removal of a software collection called “free” from the default channel configuration. The “free” channel is our collection of packages prior to the switch in recipes/compilers that we did for the Anaconda Distribution 5.0 release.

解决方案:重新启用免费 channel 。

  1. 全局启用免费 channel 。

    conda config --set restore_free_channel true
    conda install pyculib
  2. 仅为当前事件环境启用免费 channel 。

    conda config --set restore_free_channel true --env
    conda install pyculib
  3. 临时在单个命令中使用免费 channel 。

    CONDA_RESTORE_FREE_CHANNEL=1 conda install pyculib

关于python - 如何为 Windows 的 pyculib 添加正确的分发 channel ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58230343/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com