• 用conda创建一个tensorflow 虚拟环境


    创建your——user——name = tensorflow 的虚拟环境

    xinpingdeMacBook-Pro:~ xinpingbao$ conda create -n tensorflow python=2.7 anaconda

    激活

    source activate tensorflow

    失活:

    source deactivate

    查看当前的版本:

    conda info -e

    ---------------------------  参考url ----------------------------------

    https://stackoverflow.com/questions/30170468/how-to-run-spyder-in-virtual-environment

    https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/

     https://www.tensorflow.org/install/install_mac

    There is an option to create virtual environments in Anaconda with required Python version. 

    conda create -n myenv python=3.4 anaconda

    This will create virtual environment to virtualenv. To activate it :

    source activate myenv   # (in linux)
    activate myenv          # (in windows - note that you should be in your c:anaconda2 directory)

    To check the current environment has been changed:

    conda info -e

    And now to run Spyder with Python 3.4 just type:

    spyder

     

  • 相关阅读:
    数数小木块
    Triangular Sums
    Financial Management
    阶乘因式分解(一)
    另一种阶乘问题
    韩信点兵
    Fibonacci数
    A+B Problem
    16进制的简单运算
    浅谈数据库之事务
  • 原文地址:https://www.cnblogs.com/xinping-study/p/7155905.html
Copyright © 2020-2023  润新知