1. Django 安装——Django
1. yum 安装1.1 检查python是否安装(python3.8) [root@node8 python-project]# pythonPython 3.8.1 (default, Jul 20 2020, 17:33:01)[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linuxType "help", "copyright", "credits"
·
1. yum 安装
1.1 检查python是否安装
(python3.8) [root@node8 python-project]# python
Python 3.8.1 (default, Jul 20 2020, 17:33:01)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
1.2 安装 setuptools
(python3.8) [root@node8 python-project]# yum install python-setuptools
完成之后,就可以使用 easy_install 命令安装 django
(python3.8) [root@node8 python-project]# easy_install django
★报错
2. pip 安装
(python3.8) [root@node8 python-project]# pip3 install Django==3.0.6
3. 源码安装
tar xzvf Django-X.Y.tar.gz # 解压下载包
cd Django-X.Y # 进入 Django 目录
python setup.py install # 执行安装命令
————Blueicex 2020/07/20 17:50 blueice1980@126.com
更多推荐
已为社区贡献1条内容
所有评论(0)