当我在Ubuntu终端中尝试在Python中使用import tensorflow as tf
时,没有任何错误
但是当我使用jupyter notebook
并尝试import tensorflow as tf
时,我得到了ImportError: libcublas.so.9.0
尝试export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/
无效
在/home/me/.jupyter/jupyter_notebook_config.py上编辑jupyter_notebook_config.py
也不这样做,因此它包含在该文件的最顶部:
import os
c = get_config()
os.environ['LD_LIBRARY_PATH'] = '/usr/local/cuda-8.0/lib64:usr/local/cuda-8.0/lib64/libcudart.so.8.0'
c.Spawner.env.update('LD_LIBRARY_PATH')
这是为什么?