Solve TensorFlow normal but an error in jupyter notebook in the terminal program

Error situation:

# Local operating normally, jupyter can not tensorflow Import 
ImportError: libcublas.so.10.0: CAN not Open Shared Object File: No SUCH File or Directory

  


 

solution:

1. Enter python in jupyter terminal in import tensorflow as tf no problem in the implementation report in ipython

ImportError: libcublas.so.10.0: can not open shared object file: No such file or directory
has the file view corresponding /usr/local/cuda-10.0/lib64

Resolution process

  sudo vim ~ / .bashrc added as follows

export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

sudo vim  /etc/profile   加入 如下

export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}export PATH=/usr/local/cuda/bin:$PATH

  

Create a link file:

  sudo vim /etc/ld.so.conf.d/cuda.conf may be an empty file, add the following 

      /usr/local/cuda/lib64

The last execution

     sudo ldconfig

ipython running again import tensorflow as tf by

Reference https://blog.csdn.net/fdqw_sph/article/details/78745375

Guess you like

Origin www.cnblogs.com/sddai/p/11135941.html