libcudart.so.10.0: cannot open shared object file: No such file or directory

别来无恙 提交于 2020-08-08 00:59:57

 

tensorflow 2.0.0b1

cuda:10.1

报错,使用tf.test.is_gpu_available()测试时也是false,原来是这个版本只支持10.0,不支持10.1.

解决办法:无需删除cuda10.1,也无需再下载cuda10.0包,直接

conda install cudatoolkit=10.0。

https://github.com/tensorflow/tensorflow/issues/30638

cudnn安装:

conda install cudnn=7.0.5 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/

ok的,不写版本会自动选版本:

conda install cudnn

conda设置代理:

vim ~/.condarc

 

这个文件中可以看到镜像源信息(如果配置了的话),在下面加上proxy就可以设置代理了:

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true
 
proxy_servers:
  http: http://xxx.xx.com:8080
  https: https://xxx.xx.com:8080
ssl_verify: false
注意:








1.第一个http:和https:后面跟一个空格,ssl_verify:后面也跟一个空格

2.http:和https:后面的链接换成你的代理链接和端口号。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!