需要运行tensorflow1.13.1的代码,而服务器本身使用cuda10.2,经过查询后发现由于版本不匹配,所以无法运行。
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
于是在虚拟环境中部署cuda10.0环境。
conda install cudatoolkit=10.0
但是还是报错:
ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
在这里查询了一些相关博客,但大多是通用环境下的软连接问题,在这里并不适用。
而是应该继续下载cudnn
conda install cudnn
这样在虚拟环境下配置合适的cuda版本和tensorflow版本的问题就解决啦!
最后
以上就是内向手机最近收集整理的关于虚拟环境下ubuntu+cuda10.0+tensorflow1.13.1的运行的全部内容,更多相关虚拟环境下ubuntu+cuda10.0+tensorflow1.13.1内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复