1.獲取anaconda
https://repo.continuum.io/archive/Anaconda3-2018.12-Windows-x86_64.exe (這個版本內置python3.7)
2.安裝anaconda
3.啟動Anaconda Prompt
4.安裝python3.5
conda create --name tensorflow python=3.5 (--name tensorflow:指定環境名為tensorflow)
5.激活名為tensorflow的環境
conda activate tensorflow
6.安裝tensorflow
pip install --upgrade tensorflow
7.測試
(tensorflow) C:\Users\jello>python
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf (沒有報錯,說明tensorflow已經安裝成功)
>>>