在Centos7下安装Anaconda3

下载Anaconda

方式一:官方网站

方式二:清华大学开源软件镜像站

可以下载到本地,然后通过xftp上传到Contos上

然后bash   Anaconda3-4.4.0-Linux-x86_64.sh

该按enter按,该yes|no的yes。

然后source ~/.bashrc。然后重启终端,然后输入python

若期间遇到以下问题

请先删除 anaconda3,然后下载解压,命令为:yum -y install bzip2。然后再重新bash  Anaconda3-4.4.0-Linux-x86_64.sh




若是想切换到python 2.0 版本,使用如下命令:

conda create -n py27tf python=2.7 -y -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

扫描二维码关注公众号,回复: 3683263 查看本文章

查看anaconda维护的环境的命令:conda info -e

然后将其py27tf设置为默认版本,其命令:source activate py27tf。切换3.0则 source activate root 退出3.0用exit

然后将source activate py27tf 放入./bashrc中

然后bash激活,重启系统即可

猜你喜欢

转载自blog.csdn.net/qq_36527339/article/details/81347353