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

 

posted @ 2019-08-16 10:15  阿布_alone  阅读(327)  评论(0编辑  收藏  举报
TOP