Ubuntu 系统下更新tensorflow-gpu

时间:2021-11-16 17:20:12

最初按照教程点击打开链接,成功安装cuda 8.0 + cudnn5.1 + tensorflow-gpu 0.11,但后来升级到tensorflow1.7、tensorflow1.6、 1.5、1.4、1.3、1.2都会报错类似这些:

1,ImportError: libcudnn.so.9: cannot open shared object file: No such file or

2,ImportError: libcudnn.so.8: cannot open shared object file: No such file or

3,ImportError: libcudnn.so.7: cannot open shared object file: No such file or

1,ImportError: libcudnn.so.6: cannot open shared object file: No such file or

解决办法:

将tensorflow降到1.0,即可

命令: sudo pip install tensorflow-gpu==1.0