一、版本切换
安装anaconda会覆盖本机python版本,在bashrc上加上这句,即可切回本机的python3.5。
sudo gedit ~/.bashrc
alias python='/usr/bin/python3.5'
source ~/.bashrc
二、安装其他python版本
conda create --name py38 python=3.8
conda activate py38
一、版本切换
安装anaconda会覆盖本机python版本,在bashrc上加上这句,即可切回本机的python3.5。
sudo gedit ~/.bashrc
alias python='/usr/bin/python3.5'
source ~/.bashrc
二、安装其他python版本
conda create --name py38 python=3.8
conda activate py38