建立TensorFlow环境,同时安装pip库,指定Python版本
conda create -n tensorflow pip python=3.5
切换到tensorflow环境
activate tensorflow
在tensorflow环境中安装TensorFlow
pip install --ignore-installed --upgrade tensorflow
或者安装GPU版
pip install --ignore-installed --upgrade tensorflow-gpu
pip参数说明
--ignore-installed
参数表示忽略已安装的包,重新安装。
--upgrade
参数表示更新所有指定的包到最新版本
- 安装
ipython
conda install ipython
- 安装
jupyter
conda install jupyter
启动notebook时,可以指定默认的工作目录work_dir
jupyter notebook work_dir