热线电话:13121318867

登录
2018-12-01 阅读量: 648
使用 Anaconda 安装tensorflow

使用 Anaconda 安装

Anaconda 安装只是社区而非官方支持

按照以下步骤在 Anaconda 环境中安装 TensorFlow:

按照 Anaconda 下载站点 说明下载安装 Anaconda

执行以下命令创建名为 tensorflow 的 conda 环境:

$ conda create -n tensorflow

执行以下命令激活 conda 环境:

$ source activate tensorflow
(tensorflow)$ # Your prompt should change

执行以下命令在你的 conda 环境中安装 TensorFlow:

(tensorflow)$ pip install --ignore-installed --upgrade TF_PYTHON_URL

TF_PYTHON_URL 是 TensorFlow Python 包 的 URL,例如,以下命令是安装 Python 2.7 CPU-only 版本的 TensorFlow:

 (tensorflow)$ pip install --ignore-installed --upgrade \
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.2.1-py2-none-any.whl
0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子