Linux常用技巧系列: anaconda3安装与配置

(阅读时间30s)

参考我之前写的一篇博客,https://blog.csdn.net/dongfangxiaozi_/article/details/70169989

Linux安装anaconda3非常容易,不再推荐安装anaconda2,如果需要python2,可以在anaconda3中创建虚拟环境envs。

如果在国内,选择清华源的anaconda3,下载速度比较快。

Anaconda3-5.2.0-Linux-x86_64.sh可以换成你想要的任何版本,wget是下载文件的意思。

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh

然后

sh Anaconda3-5.3.0-Linux-x86.sh

开始安装,会提示你选择yes,默认安装路径/root/anaconda3,你可以改成任何路径/home/xxx/anaconda3等,而且最好选择添加到配置文件~/.bashrc里。

如果遇到bad ELF interpreter: No such file or directory等错误请使用如下命令:

yum install glibc.i686

yum install gtk2.i686

yum install libXtst.i686

安装完了,输入python命令,可以看到如下信息

[root@localhost home]# python
Python 3.7.0 (default, Jun 28 2018, 13:37:43) 
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

猜你喜欢

转载自blog.csdn.net/dongfangxiaozi_/article/details/89066583