title: Building pygpu succeeded but import pygpu fails
body: <p>My theano/pygpu seems is broken. I build libgpuarray / pygpu from repo from a python 3 virtual env <a href="http://deeplearning.net/software/libgpuarray/installation.html" rel="nofollow noreferrer">as mentionned</a> as a user:</p>
  
  <pre><code>~$ DEVICE="cuda0" python -c "import pygpu;pygpu.test()"
  Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
    File "/home/jeanpat/VirtualEnv/venv3/lib/python3.5/site-packages/pygpu-0.6.5-py3.5-linux-x86_64.egg/pygpu/__init__.py", line 7, in &lt;module&gt;
      from . import gpuarray, elemwise, reduction
  ImportError: libgpuarray.so.2: cannot open shared object file: No such file or directory
  
  (venv3) jeanpat@laptop:~$ DEVICE="cuda0" python -c "import theano"
  ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.6 or higher required)
  NoneType
  </code></pre>
  
  <p>Trying to upgrade theano didn't fix the problem. It seems that there's an old pygpu somewhere as the error message on import theano shows.</p>
  
  <p>Thanks for advices.</p>