theano - libcublas.so cannot open shared object file: No such file or directory in ipython and notebook -
the missing libcublas.so
problem has been around time. common problem $path
, $ld_library_path
environment variable not set properly. , solutions command line scenarios have been posted in nvidia forum , here.
but no specific solution has been out similar symptoms in ipython or notebook. here own work around.
the problem still due environment variables: ipython , notebook cannot propagate settled $path
, $ld_library_path
. when happens, first thing check is
import os; print(os.environ['path']); print(os.environ['ld_library_path'])
most bin
, lib
paths not in these environs.
to solve ipython, use sudo path=$path ld_library_path=$ld_library_path ipython
when starting ipython.
and notebook, add these lines end of jupyter_notebook_config.py
:
import os os.environ['path'] += ':/usr/local/cuda/bin' os.environ['ld_library_path'] = '/usr/local/cuda/lib64'
Comments
Post a Comment