• 用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

     

  • 相关阅读:
    mysql执行sql脚本
    Eclipse Memory Analyzer 进行堆转储文件分析
    JAVA字符串格式化-String.format()
    rpm 使用
    md5sum 使用
    Spring Security 初探
    java工厂模式
    Linux 定时任务
    Java Map 知识
    【转】MVC 比较
  • 原文地址:https://www.cnblogs.com/xinping-study/p/7155905.html
Copyright © 2020-2023  润新知