更新django到2.x

时间:2021-06-02 06:53:29

django-2.x 已经发布了、想体验一下它的新功能、于是把之前电脑上的django-1.11.7uninstall 掉

一、卸载django-1.11.7:

pip3 uninstall django
Uninstalling Django-1.11.:
/Library/Frameworks/Python.framework/Versions/3.6/bin/__pycache__/django-admin.cpython-.pyc
........

二、安装django:

pip3 install django
Collecting django
Downloading Django-2.0.-py3-none-any.whl (.1MB)
% |████████████████████████████████| .1MB 202kB/s
Requirement already satisfied: pytz in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3./site-packages (from django)
Installing collected packages: django
Successfully installed django-2.0.