1.anaconda是什么?
conda类似于java中的maven,方便用户进行包的管理,与maven不同,conda可以基于当前的包和环境启动相关的虚拟机。
2.anaconda promopt 和 GUI
conda有两个终端,其中图形化界面方便进行虚拟环境的创建(各个环境相互独立,互不干扰),shell的方式用于和本机文件交互(例如启动项目)。
3.如何使用anaconda搭建django项目?
1. 在gui中新建一个虚拟环境
2. 在conda prompt中对新的环境进行activate
3. 在新的虚拟环境安装django(豆瓣源比较快) pip install -i https://pypi.doubanio.com/simple/ –trusted-host pypi.doubanio.com django
4. 找到项目文件manage.py 执行 python manage.py runserver 8080
pip install pycryptodome==3.14.1 -i http://mirrors.aliyun.com/pypi/simple/ –-trusted-host mirrors.aliyun.com
celery -A backend worker –pool=solo -l info
清华大学镜像:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中科大镜像:https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣镜像:http://pypi.douban.com/simple/
中科大镜像2:http://pypi.mirrors.ustc.edu.cn/simple/
pip install djangorestframework -i http://mirrors.aliyun.com/pypi/simple/ –trusted-host mirrors.aliyun.com/pypi/simple
pip install -i https://pypi.doubanio.com/simple/ –trusted-host pypi.doubanio.com django
related articales:
https://blog.csdn.net/kobepaul123/article/details/120981394