如何为pyculibforwindows添加正确的分销渠道?

2024-09-27 19:24:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图通过conda包发行版安装Nvidia的GPU python包,但遇到以下错误:

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

  • pyculib

Current channels:

什么是正确的分销渠道丘比和pyculib包?在


Tags: httpscomgpumain错误repoanacondaconda
2条回答

Numba通道

另一个选择是从numba渠道(他们毕竟是维护组织):

conda install -n my_env -c numba pyculib

这样做的一点好处是Numba将pyculib维护为NumPy 1.15,而anaconda频道上的版本最多只能运行nump1.13。在

至于CuPy,它可以直接在Python频道上获得,而且由于它是主动维护的(与pyculib)不同,您不需要免费频道来访问它。在

pyculib被收集在free通道中。但是free通道在conda4.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.

解决方案:重新启用free通道。在

  1. 全局启用free通道全局。在

    conda config  set restore_free_channel true
    conda install pyculib
    
  2. 仅对当前活动环境启用free通道。在

    ^{2美元
  3. 临时在单个命令中使用free通道。在

    CONDA_RESTORE_FREE_CHANNEL=1 conda install pyculib
    

相关问题 更多 >

    热门问题