Failed to compile cuda_ndarray.cu: libcublas.so.7.5: cannot open shared object file
<p>I am trying to import theano library in an aws instance to use GPU. I have written a python script using boto to automate aws setup which will essentially do an ssh to the instance from my local machine and then start a bash script where I do "<strong>python -c 'import theano'"</strong> to start the GPU. But I get the following error: <br></p>

<blockquote>
  <p><strong><em>ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: libcublas.so.7.5: cannot open shared object file: No such file or
  directory</em></strong></p>
</blockquote>

<p>When I tried to import theano module directly in the instance command shell it automatically starts using GPU.</p>

<blockquote>
  <p>Using gpu device 0: GRID K520 (CNMeM is disabled)</p>
</blockquote>

<p>I guess I am missing some other import that has to made while importing through my automation python script. What could possibly be the solution?</p>