• conda 管理 python 版本


    conda常用命令

    • 查看当前系统下的环境
    conda info -e
    
    • 创建新的环境
    # 指定python版本为2.7
    conda create -n env_name python=2.7
    # 同时安装必要的包
    conda create -n env_name numpy matplotlib python=2.7
    
    • 环境切换
    # linux/Mac下需要使用source activate env_name
    activate env_name
    #退出环境
    deactivate env_name
    
    • 移除环境
    conda remove -n env_name --all
    

    三、包管理

    • 给某个特定环境安装package有两个选择,一是切换到该环境下直接安装,二是安装时指定环境参数-n
    activate env_nameconda install pandas
    # 安装anaconda发行版中所有的包
    conda install anaconda
    
    conda install -n env_name pandas
    
    • 查看已经安装的package
    conda list
    # 指定查看某环境下安装的package
    conda list -n env_name
    
    • 查找包
    conda search pyqtgraph
    
    • 更新包
    conda update numpy
    conda update anaconda
    
    • 卸载包
    conda remove numpy

    Installing tensorflow from the conda-forge channel can be achieved by adding conda-forge to your channels with:

    conda config --add channels conda-forge
    

    Once the conda-forge channel has been enabled, tensorflow can be installed with:

    conda install tensorflow
    

    It is possible to list all of the versions of tensorflow available on your platform with:

    conda search tensorflow --channel conda-forge


    参考:https://github.com/conda-forge/tensorflow-feedstock
  • 相关阅读:
    2018年第九届蓝桥杯国赛总结(JavaB组)
    yzm10的小简介
    论文学习笔记
    Tied Block Convolution:一种共享filter的卷积形态
    AI艺术鉴赏挑战赛
    论文学习笔记
    (转)论文学习笔记
    论文学习笔记
    2020 计蒜之道 预赛 第三场 石子游戏(简单)(暴力DP)
    第六周:生成式对抗网络
  • 原文地址:https://www.cnblogs.com/yuyutianxia/p/6886268.html
Copyright © 2020-2023  润新知