Anaconda, in short, is a packaged Python collection with package management and environmental management tools and Python packages for data science computing.
Download and install https://www.anaconda.com/download/#macos from here. After the installation is complete, set the path as follows:
# Add the Anaconda Bin directory to PATH, depending on the version, it may also be ~/anaconda3/bin
echo ' Export path= ~/anaconda2/bin: $PATH ' ' >> ~/. BASHRC
# Update BASHRC for immediate effect
source ~/.BASHRC
After the configuration is complete, check to see if it is correct by the command conda–version command.
Package Management: Anaconda can easily manage packages, command Conda install-n python36 numpy install python36 packages in a setup environment.
Environmental Management: Now we need to install python3.6, run the command Conda create–name python36 python=3.6 anaconda, activate via source activate Python36.
Set up a domestic mirror:
# Add Anaconda Tuna Mirror
conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# The mirror address in Tuna's help is enclosed in quotes and needs to be removed
# set to display channel address
Conda config--set show_channel_urls Yes