1. View the version of the system
Uname–r
2, install dependent libraries such as Git
Yum Install Yuminstallbzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel Tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
3, install the Python virtual environment pyenv
mkdir ~/. Pyenvgit clone git://echo'export pyenv_root= ' $ Home/.pyenv "' >> ~/echo'export path= ' $PYENV _root/bin: $PATH" ' >> ~/echo'eval ' $ (pyenv init-) "' >> ~/. BASHRC exec $SHELL –l
To test whether the installation was successful:
Install –list
This indicates that the installation was successful. Here you can see all the libraries that can be installed, including anaconda3-5.0.1
4, install anaconda3-5.0.1
Install anaconda3-5.0. 1
5, update the database
$ pyenv Rehash
#查看当前python版本
Pyenv versions
#设置全局python版本
3.5. 1 pyenv versions
6. Toggle Python Version
# view Version
Python–version
Python 2.7.5
# Switch to Anaconda version
Pyenv Local anaconda3-5.0. 1
Then view the version:
Pyenv Local anaconda3-5.0. 1
#切回系统python版本
Pyenv Local anaconda3-5.0. 1
Uninstalling Anaconda3
1. Delete Directory
RM-RF Anaconda installation Directory
2, download in home directory
Vi ~/.BASHRC
#注释掉以下代码
#export Path=/home/lq/anaconda3/bin: $PATH
3. Update environment variables
SOURCE ~/.BASHRC #卸载完毕
Special cases occur:
This may occur when you need to install a graphical interface
Linux installation Anaconda3