安装 miniconda
miniconda和anaconda的区别可以自行百度,anaconda会安装大部分的包,很多没用。
进入网址 Miniconda - Conda,下载 Python3 的 64-bit 版本即可。
修改执行权限: chmod 777 + 文件名称
执行安装文件: bash+文件名
安装过程中使用默认配置即可。最后执行以下 source ~/.bash_profile
添加 conda 的镜像服务器
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
###创建 Python3.6 的虚拟环境
conda -h或conda –-help来看大量的缩写
conda create -n python36 python=3.6
激活环境
source activate python36
确认当前环境
conda info –e
包管理
- 查看安装的包:conda list
- 安装包: conda install xxx