Windows下Anaconda操做:在Anaconda Prompt下执行python
1. Anaconda 更新url
conda update condaspa
conda update anacondarem
conda update pythonget
conda update --all #更新包io
2. 包管理class
conda list #列出当前环境的全部包date
conda install package_name # 在当前环境安装包搜索
conda install -n env_name package_name #为指定环境安装包下载
conda search package_name #搜索包
conda update package_name #更新当前环境的包
conda update -n env_name package_name #更新指定环境的包
conda remove package_name #删除当前环境的包
conda remove -n env_name package_name #删除指定环境的包
3. 改变当前环境
conda create --name python37 python=3.7 #建立名为python37的环境,指定版本是3.7,但也可使用其余名字表示环境名
activate python37 #激活环境,for Windows
deactivate python37 #关闭指定环境
conda remove --name python37 --all #删除指定环境
4. 设定国内镜像——国外镜像下载会比较慢,有时会出现time out错误
#添加清华大学镜像
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 #安装或搜索时显示包的来源地址
## Anaconda的清华大学镜像地址
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
## Anaconda官网地址
https://www.anaconda.com/distribution/
## 欢迎交流和指正