If I recall correctly, you shouldn't try importing pycuda.driver from the
same directory that you installed pycuda. Try `cd`ing into another
directory and then importing?


On Mon, Oct 20, 2014 at 3:15 PM, Guillaume Dumas <[email protected]>
wrote:

> Hi!
>
> I am struggling with the installation of pycuda for hours, trying almost
> every pieces of advices I have found on the internet unsuccesfully...
>
> Basically, I am blocked with an error when I import the module as follow:
>
> In [1]: import pycuda.driver as cuda
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> <ipython-input-1-b2dd91e7bf60> in <module>()
> ----> 1 import pycuda.driver as cuda
>
> /Users/kwisatz/Downloads/pycuda-2014.1/pycuda/driver.py in <module>()
>       1 try:
> ----> 2     from pycuda._driver import *  # noqa
>       3 except ImportError, e:
>       4     if "_v2" in str(e):
>       5         from warnings import warn
>
> ImportError: No module named _driver
>
> I follow the instructions here
> <http://wiki.tiker.net/PyCuda/Installation/Mac#Installing_PyCUDA_on_Mac_OS_X_10.9_Mavericks_with_CUDA_6.0>
>  but
> I feat the *siteconf.py *file should be adapted for the last version of
> CUDA (i.e. 6.5, 64bit).
>
> During the building of the module, I got some warnings:
> http://pastebin.com/mMVWs0XK
>
> Thanks for your help,
>
> Guillaume
>
> _______________________________________________
> PyCUDA mailing list
> [email protected]
> http://lists.tiker.net/listinfo/pycuda
>
>
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to