anaconda+python3.5+django2.2.1
1、下载安装anaconda
2、配置提高conda的速度
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
3、创建指定python版本的虚拟环境
conda create -n mydjango python=3.5.2
4、进入虚拟环境
activate mydjango
conda常用命令
1、查看所有环境:conda info --envs
2、新建虚拟环境:conda create -n myenv python=3.5.2
3、删除虚拟环境:conda remove -n myenv --all
4、激活虚拟环境:activate myenv
5、退出虚拟环境:deactivate
6、查看已经安装的包:pip freeze 下载:pip install 包名
5、配置提高pip的速度
创建文件c:\users\Administrator\pip\pip.ini,写入
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
6、安装django
1、进入虚拟环境
2、安装django
3、测试