• anaconda + tensorflow +ubuntu 超级菜鸟,大家多指正【转】


    本文转载自:https://blog.csdn.net/zzw000000/article/details/51203331

    1.首先安装Anaconda 

    下载linux对应的anaconda版本,下载到你的路径 : PATH

    2.安装anaconda,

    打开终端bash PATH/Anaconda3-4.0.0-Linux-x86_64.sh 安装在其余路径的,请根据下面网站提示更改路径表

    https://docs.continuum.io/anaconda/install
    

    3.安装tensorflow

    虽然谷歌官网推荐使用anaconda的安全环境安装,但是我觉的太麻烦,想用ipython notebook 或者 spyder 就很麻烦,不如直接安装进去 site-packages
    所以这里 不用直接 进入终端,
    
    1.  
      # Python 2.7
    2.  
      $ conda create -n tensorflow python=2.7
    1.  
      $ source activate tensorflow
    2.  
      (tensorflow)$ # Your prompt should change
    1.  
      # Ubuntu/Linux 64-bit, CPU only:
    2.  
      (tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl
    3.  
       
    4.  
      # Ubuntu/Linux 64-bit, GPU enabled. Requires CUDA toolkit 7.5 and CuDNN v4. For
    5.  
      # other versions, see "Install from sources" below.
    6.  
      (tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl

    打开你的anaconda文件夹,找到envs 打开tensorflow 将sitepack-ages里面的东西都考到 anaconda/lib/python2.7/sitepack-ages

    4.运行tensorflow

     

    1.  
      打开终端,输入 spyder 或者ipython notebook 就可以实验了
    2.  
       

    5.今天发现新办法,安装了anaconda之后

     

    1.  
      在终端直接输入:conda install -c https://conda.anaconda.org/jjhelmus tensorflow 就可以了,不用那么麻烦了,因为将虚拟环境中一出来可能使conda命令失效,安装了anaconda之后
    2.  
      如果说权限不够的, 可以 使用指令: sudo chmod 777 -R anaconda2 之后就可以安装tensorflow了
    3.  
       

    6.其余解决办法:

    如果你试了上面几种办法都不好用,那么可以下载tensorflow

    
    
    https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl

    ,将whl文件放到你的anaconda2/lib/python2.7/site-packages/ 里面,然后打开终端: pip install

    
    
    1.  
      tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl 就可以了
    2.  
  • 相关阅读:
    Visual C#使用DirectX实现视频播放
    windows WMIC命令大全
    WMI 无法监视时必须要尝试的手段 winmgmt /resyncperf
    DirectX技术实现视频会议中的音频通信
    c++引用
    c++模板详解
    四元数
    static_cast 和 dynamic_cast
    C++堆和栈详解(转)
    设计模式六大设计原则
  • 原文地址:https://www.cnblogs.com/zzb-Dream-90Time/p/9665420.html
Copyright © 2020-2023  润新知