管理指令
# 检查当前环境
conda info -e
# 创建新的环境并指定python版本
conda create -n env_name python=2.7
# 切换环境
activate env_name
# 退出环境
deacticate env_name
# 移除环境
conda remove -n env_name --all
管理安装包
# 安装包
conda search pkg_name
conda install pkg_name
# 检查安装过的包
conda list
# 升级包
conda update pkg_name
conda update anaconda
# 移除包
conda removw pkg_name
使用国内镜像(添加清华源)
- 1.找到
.condarc
in C:\Users\user_name.condarc - 2.移除 - default
-
- 打开Anaconda Prompt并输出
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
安装tensorflow(CPU)
conda create -n tensorflow python=3.5
activate tensorflow
conda install tensorflow
安装scrapy框架
conda create -n py27 python=2.7
activate scrapy
conda install scrapy