查看所有虚拟环境:
conda env list
新建虚拟环境:
conda create -n env_name python=3.6
删除虚拟环境:
conda remove -n env_name --all
激活虚拟环境:
conda activate env_name
退出虚拟环境:
conda deactivate env_name
安装包的几种方法:
pip install numpy
pip install numpy==1.10.0
指定镜像源安装:
pip install Django -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
镜像源:
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣:http://pypi.douban.com/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/