DLL加载失败:找不到pygpu/libgpuarray的指定模块

2024-06-28 20:24:52 发布

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

我正在使用libgpuarray(openCL),但似乎无法让GPU与anaconda2中的Theano一起工作。当我尝试运行test时,我得到:

ERROR (theano.gpuarray): pygpu was configured but could not be imported Traceback (most recent call last): File "C:\Users\username\Anaconda2\lib\site-packages\theano-0.9.0.dev1-py2.7.egg\theano\gpuarray__init__.py", line 21, in import pygpu File "C:\Users\username\Anaconda2\lib\site-packages\pygpu-0.2.1-py2.7-win-amd64.egg\pygpu__init__.py", line 7, in from . import gpuarray, elemwise, reduction ImportError: DLL load failed: The specified module could not be found.

Theano和cpu配合得很好。我遵循了this文档。我运行命令代码“python设置.py构建“和”python设置.py安装“on设置.py在libgpuarray文件夹中(在我使用cmake安装libgpuarray之后)获取pygpu并成功运行。运行cmake后,我得到gpuarray.dll但此错误仍会发生。我需要用它做些什么吗?还是有别的事情发生?在


Tags: pylibusernamesitenottheanobeusers