安装好tensorflow之后控制台import tensorflow as tf不报错,pycharm报错

pycharm 报 libcublas.so.9.0: cannot open shared object file: No such file or directory
这个时候需要在pycharm中设置environment variables 添加 LD_LIBRARY_PATH 环境变量。值为/usr/local/cuda-9.0/lib64:/usr/local/lib

你可能感兴趣的:(安装好tensorflow之后控制台import tensorflow as tf不报错,pycharm报错)