pycharm运行tensorflow程序报错libcusolver.so.8.0: cannot open shared object file: No such file or directory

时间:2022-03-25 21:15:44

命令行下import tensorflow没问题,但是在pycharm中运行报错:libcusolver.so.8.0: cannot open shared object file: No such file or directory

解决:在pycharm工程中run->edit configurations->Environment Variables,把cuda的路径添加到environment variables.
pycharm运行tensorflow程序报错libcusolver.so.8.0: cannot open shared object file: No such file or directory

pycharm运行tensorflow程序报错libcusolver.so.8.0: cannot open shared object file: No such file or directory
解决。