1. Official website and help documents
Official website: https://www.tensorflow.org/install/install_windows
English Help document: https://efeiefei.gitbooks.io/tensorflow_documents_zh/install/install_windows.html
A) CPU version installation: PIP3 Install--upgrade TensorFlow
b) GPU Version installation: PIP3 Install--upgrade Tensorflow-gpu, requires first installation of CUDA,CUDNN, need to pay attention to the version
Note: currently tensorflow only supports python3.5.x and above in Windows, you need to use PIP3 to install TensorFlow.
2, the CPU version installation may encounter problems
2.1, Importerror:could not find ' msvcp140.dll '. TensorFlow requires that this DLL ..., Solution: Install Microsoft for VS2015 components provided by Visual C + + Redistributable for Visual Studio 2015, URL https://ww w.microsoft.com/zh-cn/download/details.aspx?id=48145, after downloading the direct installation is good.
2.2, Your CPU supports instructions that this tensorflow binary is not compiled to USE:AVX AVX2, should be a compilation problem, solution:
Import osos.environ['tf_cpp_min_log_level'2' # Ignore warnings
3. Simple command
A) View TensorFlow version and installation path
Import TensorFlow as TF
TF. __version__ #版本
Tf.__path__ #路径
Install TensorFlow on Windows