window在Anaconda中安裝TensorFlow
阿新 • • 發佈:2017-08-10
-a 輸入 show 關閉 googl Language tor tar com
import tensorflow as tf
window在Anaconda中安裝TensorFlow
1、打開Anaconda Prompt,輸入清華的倉庫鏡像,更新包更快:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes 推薦第一行命令輸入兩次,以便把這個鏡像地址放在首位。 2、安裝TensorFlow 在Anaconda Prompt中輸入: conda create -n tensorflow python=3.5 安裝完以後,輸入: activate tensorflow 激活後,我選擇安裝的是CPU版本,輸入: pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0-cp35-cp35m-win_amd64.whl3、測試:
4、關閉
當你不用 TensorFlow 的時候,關閉環境:
deactivate
window在Anaconda中安裝TensorFlow