title: Pycuda installation on Ubuntu
body: <p>I'm having a difficult time installing pycuda. I am running on Ubuntu 12.04. I first installed the Enthought python distribution (even though I already had python on the computer). I added the enthought python location to the path in my .profile (and this works without issue, typing python or ipython from the command line correctly uses the enthought version). I then followed the instructions from <a href="http://wiki.tiker.net/PyCuda/Installation/Linux/Ubuntu" rel="nofollow">http://wiki.tiker.net/PyCuda/Installation/Linux/Ubuntu</a> (skipping steps 0-1 as I already had numpy and cuda installed).</p>
  
  <p>Everything seems to run and install fine. But when I try to actually use pycuda, it fails. For example, here's what happens when I try to run the hello_gpu.py example:</p>
  
  <pre><code>:~/Downloads/pycuda-2012.1$ python examples/hello_gpu.py 
  Traceback (most recent call last):
    File "examples/hello_gpu.py", line 1, in &lt;module&gt;
      import pycuda.driver as drv
    File "/usr/lib/python_enthought/lib/python2.7/site-packages/pycuda-2012.1-py2.7-linux-        x86_64.egg/pycuda/driver.py", line 2, in &lt;module&gt;
      from pycuda._driver import *
  ImportError: /usr/lib/libboost_python-py27.so.1.46.1: undefined symbol:         
  PyUnicodeUCS4_FromEncodedObject
  </code></pre>
  
  <p>Alternatively, when I try to import the pycuda package from idle, I get a different error:</p>
  
  <pre><code>Python 2.7.3 |EPD 7.3-1 (64-bit)| (default, Apr 11 2012, 17:52:16) 
  [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
  Type "credits", "demo" or "enthought" for more information.
  &gt;&gt;&gt; import pycuda
  &gt;&gt;&gt; pycuda
  &lt;module 'pycuda' from 'pycuda/__init__.pyc'&gt;
  &gt;&gt;&gt; import pycuda.driver as drv
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "pycuda/driver.py", line 2, in &lt;module&gt;
      from pycuda._driver import *
  ImportError: No module named _driver
  </code></pre>
  
  <p>I suspect part of the issue is me somewhere not specifying the correct path to the python interpreter, but I cannot figure out where this error occurs. Any suggestions would be most welcome, I am out of ideas. </p>