conda create -n tensorflow python=2.7
conda activate tensorflow / source activate tensorflow
anaconda search -t conda tensorflow
anaconda show HCC/tensorflow-cpucompat
官方下载更新工具包的速度很慢,所以继续添加清华大学 TUNA提供的Anaconda仓库镜像,在终端或cmd中输入如下命令进行添加
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --set show_channel_urls yes
根据返回的内容进行安装(238上没有成功)
(tensorflow) yuany@Mobile238:~/.conda/envs/tensorflow$ anaconda show HCC/tensorflow-cpucompat
Using Anaconda API: https://api.anaconda.org
Name: tensorflow-cpucompat
Summary: Computation using data flow graphs for scalable machine learning.
Access: public
Package Types: conda
Versions:
+ 1.0.0
+ 0.12.1
+ 1.3.1
+ 1.4.0
+ 1.5.0
+ 1.7.0
To install this package with conda run:
conda install --channel https://conda.anaconda.org/HCC tensorflow-cpucompat
(tensorflow) yuany@Mobile238:~/.conda/envs/tensorflow$ conda install --channel https://conda.anaconda.org/HCC tensorflow-cpucompat
卸载已经安装的tensorflow
conda uninstall r-tensorflow
直接用pip安装,参考如下网页
https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/