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/
原文地址:https://www.cnblogs.com/scarecrow-blog/p/10402569.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。