Linux installation Anaconda3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.