第一步:下載anaconda 最好是Anaconda3-4.2.0-Windows-x86_64(支持python3.5)而我剛開始下載是Anaconda3-4.3.1-Windows-x86_64(支持python3.6)結果在安裝tensorflow中出現not a supported wheel on this platform.錯誤。因爲官網上說了TensorFlow supports only 64-bit Python 3.5 on Windows. We have tested the pip packages with the following distributions of Python
第二步:安裝anaconda,一步步進行就可
第三步:cpu版本
在win+R 輸入cmd打開命令提示符
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
如果出現Cannot remove entries from nonexistent file e:\anaconda3\lib\site-packages\easy-install.pth11
輸入 pip install --ignore-installed --upgrade pip setuptools 更新setuptools版本
再重新pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl 即可
最後一步 測試
在命令提示符下輸入python,輸入import tensorflow as tf
無報錯則安裝成功