Installation and use of linux7 anaconda
- System environment
#cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)#python -VPython 2.7.5
- Download Anaconda
: Click Anaconda2
Description: Choose the version you need, here I use python2.7, click on the right side of the download can.
- Anaconda Installation
#将Anaconda安装文件放在/usr/local目录下cd /usr/local/#执行安装脚本sh Anaconda2-5.2.0-Linux-x86_64.sh
- installation process
(1) Click "ENTER" according to the prompt, as follows:
(2) Click "Yes" according to the prompt, as follows:
(3) Choose the installation location as required, I install it here under the/usr/local/path, as follows:
(4) Write/ROOT/.BASHRC, as follows:
(5) Successful Installation
(6) If you need to decide whether to install Microsoft Vscode, I do not need to:
- Change the/etc/profile configuration file
#添加anaconda执行路径echo "export PATH=/usr/local/anaconda2/bin:$PATH" >> /etc/profilesource !$#查看python变化pythonPython 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55) ##我们可以看到增加了“Anaconda, Inc.”这个内容!
Anaconda Pack
#安装pymcconda install pymc#python中importimport pymc
- Delete Anaconda
#删除Anaconda安装文件rm -rf /usr/local/anaconda2#删除路径配置vim /etc/profileexport PATH=/usr/local/anaconda2/bin:$PATH"这一行删除!source /etc/profile && bash
Installation and use of linux7 anaconda