title: Anaconda install pycuda
body: <p>I am trying to install pycuda in computer with Windows 10 64bits, I installed the GPU Toolkit 9.1 and Anaconda 4.2 with python 3.5  64bits. I installed pycuda using the precompiled package:</p>
  <p>pycuda‑2017.1.1+cuda9185‑cp35‑cp35m‑win_amd64.whl</p>
  <p>The installation in my Anaconda installation didn't mark any error, but when I try to run a simple example I have problems with the import:</p>
  <pre><code>Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import pycuda.driver as cuda
  RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
  ImportError: numpy.core.multiarray failed to import
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Program Files\Anaconda3\lib\site-packages\pycuda\driver.py&quot;, line 5, in &lt;module&gt;
      from pycuda._driver import *  # noqa
  SystemError: &lt;class 'ImportError'&gt; returned a result with an error set
  </code></pre>
  <p>Any idea??</p>
  <p><strong>UPDATE:</strong></p>
  <p>I resolve my first problem adding the lib directory of the cuda library to my path:</p>
  <p><code>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib</code></p>
  <p>But now I have this error:</p>
  <pre><code>Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import pycuda.driver as cuda
  &gt;&gt;&gt; import pycuda.autoinit
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Program Files\Anaconda3\lib\site-packages\pycuda\autoinit.py&quot;, line 5, in &lt;module&gt;
      cuda.init()
  pycuda._driver.Error: cuInit failed: unknown error
  </code></pre>
  <p><strong>SOLVED</strong></p>
  <p>I try installing Cudatoolkit 9.2, plus adding the</p>
  <pre><code>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\lib
  </code></pre>
  <p>to path, update my nvidia driver, and install the pycuda pycuda‑2018.1+cuda92148‑cp35‑cp35m‑win_amd64.whl</p>
  <p>Now my cuda codes function correctly.</p>