I\'m trying to install Tensorflow in my PC, i installed Python 3.5.2 64-bit, cuda_8.0.61 for windows 10 and cudnn-8.0-windows10-x64-v6.0
I used \"native\" pip to ins
I managed to run Tensorflow on Windows following these steps. Hope it helps! It may change depending in which folder you installed Python.
Copy CuDNN files to Nvidia CUDA toolkit folder when 2. has completed (usually is located on C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0)
Install Tensorflow via pip command prompt 'pip install --upgrade tensorflow-gpu'
5.1 TensorFlow dependencies
Why don't try Anaconda?
conda create -n gpu_env tensorflow-gpu
conda activate gpu_env
As easy as that. All the packages and runtime needed (Visual Studio included) will be brought together while you watch in awe :). Give it a try!
Caveat: You need to run Keras from inside tensorflow in order for it to detect and use your GPU. Otherwise if you use just keras and tensorflow as a backend, Keras will use plain tensorflow and not tensorflow-gpu. Boths are installed side by side.
Meaning you should code it this way:
import tensorflow as tf
from tensorflow.keras.models import Sequential, load_model
from tensorflow.keras.layers import Dense,Dropout
from tensorflow.keras.callbacks import ModelCheckpoint, EarlyStopping,CSVLogger
from tensorflow.keras.utils import plot_model
.............
.............
Hope this help.
I have the same problem with you. The problem is that Anaconda automatically updates the python version when installing ipython and spyder, which becomes version 3.6. You can change the python version to version 3.5 by entering the tensorflow environment via Anaconda. enter image description here
Everything could be installed from the console:
conda create --name tf-gpu
conda install -c aaronzs tensorflow-gpu
conda install -c anaconda cudatoolkit
conda install -c anaconda cudnn
conda install keras-gpu
If the problem persists check the version numbering and make sure cuda and TF are compatible.
Check the version numbering here
or for a simpler way, use Anaconda
conda create --name new_env_name tensorflow-gpu
activate new_env_name
I successfully installed TensorFlow GPU version 1.12 (latest until the date of writing) with Cuda 9.0, GeForce 1050 Ti, Windows 10 and Python 3.6.7
Note: You have installed the CUDA Toolkit (version 9) for TensorFlow to recognize your GPU
Try:
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
to install tensorflow instead of:
pip install --upgrade tensorflow-gpu