在linux版本下安装gpu版tensorflow,安装cuda_10.1.105_418.39_linux.run时,报错如下:

ERROR: You appear to be running an X server; please exit X before installing

查阅晚上资料,说是要关闭界面窗口,用文本模式来安装即可。

1、$ sudo stop lightdm
2、$ sudo init 3
3、$ chmod 777 cuda_10.1.105_418.39_linux.run
4、$ sudo bash cuda_10.1.105_418.39_linux.run

安装后发现成功安装。

5、$ nvcc -V
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐