Install Pycuda Ubuntu, You might also add the location of your cuda lib directory to your LD_LIBRARY_PATH.