• 用anaconda安装tensorflow


    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/

  • 相关阅读:
    redis使用基础(一) ——Redis基本概述与安装配置
    Linux学习闲谈(三) ——SVN用法及切版本与合版本
    Linux学习闲谈(二) ——SVN版本控制拾遗
    Linux学习闲谈(一)——Shell基本操作与命令
    linux1
    git命令
    ubuntu
    laradock
    实用工具
    grumphp在docker里问题
  • 原文地址:https://www.cnblogs.com/scarecrow-blog/p/10402569.html
Copyright © 2020-2023  润新知