【问题标题】:How to install cudatoolkit package on the WinPython distribution如何在 WinPython 发行版上安装 cudatoolkit 包
【发布时间】:2019-03-06 16:11:31
【问题描述】:

如何在 WinPython 发行版上安装 cudatoolkit 包?当我查看非官方二进制文件列表时,它不存在,而当我查看时:

python -m pip install cudatoolkit

我明白了

Could not find a version that satisfies the requirement cudatoolkit (from versions: )
No matching distribution found for cudatoolkit

【问题讨论】:

    标签: python-3.7


    【解决方案1】:

    我点击了这个链接并且能够为 Winpython 安装 cudatoolskit。我不必添加路径,因为它是自动添加到 windows 环境中的。

    https://github.com/numba/conda-recipe-cudatoolkit/issues/17#issuecomment-533107631

    安装后我运行以下代码查看我的 GPU 是否正常工作

    from numba import jit, cuda 
    print(cuda.gpus)
    

    如果您得到 ,则表示您的 GPU 已被检测到。

    我使用这个回复示例来测试 GPU 差异

    https://stackoverflow.com/a/61384003/14689548

    【讨论】:

    • 这样做对我不起作用,并在我的问题中给我同样的错误。
    猜你喜欢
    • 1970-01-01
    • 2016-09-13
    • 2013-09-03
    • 2014-01-08
    • 2019-10-21
    • 1970-01-01
    • 2017-08-07
    • 2022-06-14
    • 1970-01-01
    相关资源
    最近更新 更多