美文网首页
Ubuntu anaconda简单使用

Ubuntu anaconda简单使用

作者: wnyto | 来源:发表于2018-08-09 13:11 被阅读0次

    0.查看系统内的环境:

    conda info --e 
    

    1.对环境的操作

    • 创建环境
    eg: conda create -n xxx python=2.7
    //创建以xxx为名的带有python27的环境
    
    • 环境激活
     source activate xxx
    
    • 退出环境
    deactivate xxx
    
    • 删除环境
    conda remove -n xxx --all
    

    2.对包的操作

    conda search packagename//查找包
    conda install packagename//安装包
    conda list//查看已安装的包
    conda update packagename//更新包
    conda remove packagename//移除包
    

    3.设置国内镜像

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    
    conda config --set show_channel_urls yes
    

    相关文章

      网友评论

          本文标题:Ubuntu anaconda简单使用

          本文链接:https://www.haomeiwen.com/subject/eglbmftx.html