Importing Tensorflow Stops Python Program From Running
I have Python Tools setup in Visual Studios with CPython installed. In Visual Studios, if i run the following code: print('hello'); import numpy; print('hello'); The program runs
Solution 1:
Once you import tensorflow it automatically tries to load cuda, it prints something like this:
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally
So I think what is happening is that you don't have cuda installed correctly and it is failing because of it. You can try to install the CPU version which doesn't use the GPU and doesn't load those libraries.
Post a Comment for "Importing Tensorflow Stops Python Program From Running"