Verbatim https://www.dazhuanlan.com/2019/08/26/5d63016142d97/
International practice, see the official documents. The official recommended pip
installation, you need to install before installing TensorFlow
CUDA 10.1
cuDNN 7.6
Microsoft Visual C++ 2015 Redistributable Update 3
Then execute
pip install tensorflow-gpu
Installation.
Test installation was successful:
import tensorflow as tf
Error, suggesting missing DLL files. Editor's Note found a bit, most people solve method is to install VC++ 2015 Redistributable Update 3
, reinstall VC++ 2015 Update 3
after uninstalling TensorFlow-GPU
and then install, or reported the same mistakes.
In other mounting Conda
Pretending PyTorch
to see the official installation documentation useful Conda
installation method, you take the opportunity in TensorFlow
the try.
# 安装 PyTorch
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
# 安装 TensorFlow
conda install tensorflow-gpu
After installation test:
import tensorflow as tf
import torch
No error, the success of the installation.