djanjo(0)安装:pip安装django不报错的方法

pip install Django -i  http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

 

 

 

检查

[root@localhost yum.repos.d]# 
[root@localhost yum.repos.d]# python 
Python 2.7.5 (default, Jun 17 2014, 18:11:42) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 10, 1, u'final', 1)
>>> django.get_version()
'1.10.1'

 

 

另外,也可以进行

 

yum install python-django -y 进行安装

 

转载地址:http://www.up123.cc/11.html

你可能感兴趣的:(django)