When I\'m trying to use TensorFlow with Keras using the gpu, I\'m getting this error message:
C:\\Users\\nicol\\Anaconda3\\envs\\tensorflow\\lib\\site-packag
For me, closing and restarting my processes using Python worked.
I tried a few things here but they didn't work. For example, the
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
line. I think it is because I am using a newer version of Keras and Tensorflow. A lot of what I have read on the internet, include the official Keras tutorial, does not work because of version conflicts.
But I saw a couple of posts about more than one Python process running. So I shut down Jupyter, Anaconda, and PyCharm, and restarted everything. And then the error went away. It may or may not be what fixes is for you, but it is worth a try.