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
  • 相关阅读:
    zookeeper安装教程
    CentOS7服务管理(重启,停止,自动启动命令)
    redis配置文件详解
    阿里云 CentOS7安装redis4.0.9并开启远程访问
    rpm命令
    wget命令
    yum命令
    maven项目debug调试不能够进入源码问题解决
    8-字符串
    7-数组
  • 原文地址:https://www.cnblogs.com/tjp40922/p/11362241.html
Copyright © 2011-2022 走看看