安装:
wget https://repo.anaconda.com/archive/Anaconda2-2018.12-Linux-x86_64.sh
sh Anaconda2-2018.12-Linux-x86_64.sh
……
……
Do you accept the license terms? [yes|no]
yes
Do you wish the installer to initialize Anaconda2
in your /home/work/.bashrc ? [yes|no]
yes
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
no
source ~/.bashrc
常用命令:
conda create -n python3.6 python=3.6#创建环境
conda info --envs#列出现有的虚拟环境列表
conda create --name newpython --clone python3.6
conda remove --name newpython --all
python环境导入导出:
pip freeze >requirements.txt#导出模块
pip install -r requirements.txt#导入模块