zoukankan      html  css  js  c++  java
  • centeos安装Anconda3

      步骤:

    #获取安装包
    wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh
    
    # 安装bzip2
    yum install -y bzip2
    
    bash Anaconda3-5.2.0-Linux-x86_64.sh
    #一路回车,哟啊注意选择是否
    
    
    #配置环境变量
    #运行vim ~/.bashrc,在文件最后加上(现在应该会帮你加上,如果这个文件有了就不需要加了)
    export  PATH="/root/anaconda3/bin:$PATH" 
    
    #安装好以后,输入命令,使环境变量生效 :source ~/.bashrc,然后重启终端
    
    #验证
    #输入conda
    [root@instance-hrnebyqu ~]# conda
    usage: conda [-h] [-V] command ...
    
    conda is a tool for managing and deploying applications, environments and packages.
    
    Options:
    
    positional arguments:
      command
        clean        Remove unused packages and caches.
        config       Modify configuration values in .condarc. This is modeled
                     after the git config command. Writes to the user .condarc
                     file (/root/.condarc) by default.
        create       Create a new conda environment from a list of specified
                     packages.
        help         Displays a list of available conda commands and their help
                     strings.

      常规使用:

    # 创建一个名为py3,版本为python3.6得虚拟环境
    conda create --name py3 python=3.6
    
    # 列出所有得虚拟环境
    conda env list
    
    #激活py3这个虚拟环境
    source activate py3
    
    #取消激活
    source deactivate
  • 相关阅读:
    [C++] Class (part 2)
    [C++] Class (part 1)
    [c++] Inline Function
    [C++] in-class initializer
    简易线程池Thread Pool
    js里function的apply vs. bind vs. call
    webix custom component-九宫格
    webix源码阅读
    比特币的原理+问题
    wpf中UserControl的几种绑定方式
  • 原文地址:https://www.cnblogs.com/tjp40922/p/11362241.html
Copyright © 2011-2022 走看看