在Windows 10中安装CUDA 9.0

在Windows 10中安装CUDA 9.0

我正在尝试在 Windows 10 中安装 Cuda 9.0,目的是运行此示例: https://github.com/andi611/Apriori-and-Eclat-Frequent-Itemset-Mining

Python 版本:3.6.5(Anaconda)

操作系统:Windows 10

Cuda 版本:9.0

cuda 软件已正确安装,但是当我在 python 中运行此行时:

  import pycuda.gpuarray as gpuarray

它引发了以下错误:

 Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import pycuda.gpuarray as gpuarray
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
  File "C:\Anaconda\lib\site-packages\pycuda\gpuarray.py", line 4, in 
 <module>
import pycuda.elementwise as elementwise
File "C:\Anaconda\lib\site-packages\pycuda\elementwise.py", line 35, in <module>
from pycuda.tools import context_dependent_memoize
File "C:\Anaconda\lib\site-packages\pycuda\tools.py", line 34, in <module>
import pycuda.driver as cuda
File "C:\Anaconda\lib\site-packages\pycuda\driver.py", line 5, in <module>
from pycuda._driver import *  # noqa

ImportError: DLL load failed: The specified module could not be found.

首先,我安装了 Cuda 10.0,但它也无法工作,然后我尝试使用 cuda 9.0,但显示相同的错误。

当我尝试安装 pycuda 旧版本时:

 pip3 install pycuda==2018.1

 Error: TypeError: '>=' not supported between instances of 'NoneType' and 'str'

相关内容