My Test
import tensorflow as tf
hello = tf.constant(\'Hello, TensorFlow!\')
sess = tf.Session()
My Error
You can attempt to work around this problem on cpu-only machines by using the tensorflow-cpu
package instead of tensorflow
.
pip uninstall tensorflow
pip install tensorflow-cpu
Installing nvidia-modprobe can solve this issue.
sudo apt install nvidia-modprobe
Other solutions you can try are :
The problem also could be that only some /dev/nvidia*
files are present before running Python with sudo, check using $ ls /dev/nvidia*
, after running the Device Node verification script the /dev/nvidia-uvm
file gets added.