windows 注意:
选just for me 选项
添加到path 中
安装完了以后会有: anaconda navigator, anaconda prompt, jupyter notebook ,Spyder
Linux 注意:
添加到.bashrc文件,并source这个文件
安装完成以后,如何检查是否已经安装成功:
conda --version
升级到最新版本
conda update conda
清华源地址:
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
#配置到国内清华的源# 添加清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes # 设置在下载的时候显示源的Url
# 查看源是否已经添加成功
conda config --show channels
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# 设置在下载的时候显示源的Url
conda config --set show_channel_urls yes
# 查看源是否已经添加成功
conda config --show channels
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# 设置在下载的时候显示源的Url
conda config --set show_channel_urls yes
# 查看源是否已经添加成功
conda config --show channels
# 创建一个名为py36的环境,指定python版本为3.6
# (不管是指定3.5,3.6,conda会为我们自动寻找最新的版本)
conda create --name py3 python=3.6 # 在windows下直接activate激活
activate py35
# 在Linux或者Mac下,使用source activate 激活
source activate py35
首先anaconda包含了navigator、prompt、conda、jupyter这些工具,同时也包含了python、pip、virtualenv等工具库
conda和pip的关系:
conda是包管理和环境管理工具,conda还支持多种环境的管理,包括python、R,注意:包括语言本身,不仅仅是语言的包
pip仅仅是python的包管理工具
conda不会影响系统自带的python
conda和virtualenv的关系
conda是结合了pip和virtualenv的功能
conda可以创建多个Python版本的虚拟环境
virtualenv只能创建指定版本的环境