zaxlct/imooc-django的github地址
[root@VM_0_13_centos imooc]# pip freeze
Django==1.10.5
django-crispy-forms==1.6.1
django-debug-toolbar==1.4
django-formtools==2.0
django-pure-pagination==0.3.0
django-simple-captcha==0.4.6
django-xadmin==0.5.0
httplib2==0.10.3
mysqlclient==1.4.6
olefile==0.46
Pillow==4.0.0
PyMySQL==0.9.3
pytz==2019.3
six==1.14.0
sqlparse==0.3.0
如果安装的django版本过高,需要切换到低版本1.10.5
pip install django-debug-toolbar==1.4
pip install Django==1.10.5
//升级pyMySQL
pip install PyMySQL==0.9.3
启动服务python manage.py runserver 0.0.0.0:8000
centos 卸载python和yum之后的解决办法
//下载地址
wget http://mirrors.163.com/centos/6/os/x86_64/Packages
[root@keyog-baidu-cloud local]# cd /usr/local/src/python
[root@keyog-baidu-cloud python]# ll
total 7072
-rw-r--r-- 1 root root 77968 Aug 19 2016 python-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 176932 Aug 19 2016 python-devel-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 37052 Jul 3 2011 python-iniparse-0.3.1-2.1.el6.noarch.rpm
-rw-r--r-- 1 root root 5589812 Aug 19 2016 python-libs-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 78448 May 12 2016 python-pycurl-7.19.0-9.el6.x86_64.rpm
-rw-r--r-- 1 root root 87660 May 12 2016 python-urlgrabber-3.9.1-11.el6.noarch.rpm
-rw-r--r-- 1 root root 62140 Jun 20 2018 rpm-python-4.8.0-59.el6.x86_64.rpm
-rw-r--r-- 1 root root 1042364 Mar 23 2017 yum-3.2.29-81.el6.centos.noarch.rpm
-rw-r--r-- 1 root root 27224 Sep 26 2011 yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
-rw-r--r-- 1 root root 33692 Jun 20 2018 yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
error: Failed dependencies:解决
https://www.cnblogs.com/xykjlcx/p/7133242.html
rpm -ivh python-* rpm-python-* yum-* --nodeps --force