Ubuntu anaconda简单使用

0.查看系统内的环境:

conda info --e 

1.对环境的操作

  • 创建环境
eg: conda create -n xxx python=2.7
//创建以xxx为名的带有python27的环境
  • 环境激活
 source activate xxx
  • 退出环境
deactivate xxx
  • 删除环境
conda remove -n xxx --all

2.对包的操作

conda search packagename//查找包
conda install packagename//安装包
conda list//查看已安装的包
conda update packagename//更新包
conda remove packagename//移除包

3.设置国内镜像

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

你可能感兴趣的:(Ubuntu anaconda简单使用)