The virtual environment has now been activated. Therefore, we can use the Python package manager, pip, to install Django. Perform the following steps:
- Install Django using the following command:
(venv) [root@ip-172-31-95-213 django_app]# pip3 install django
The following screenshot shows the installation output on our console:
Figure 4.3 – Installing Django
- The following command will help you to verify the installation process. It will print the Django version:
(venv) [root@ip-172-31-95-213 django_app]# python3.7 -m django --version
2.2.6
- Surprisingly, the installation of Django is very simple and quick for developers. Version 2.2.6 of Django requires SQLite versions later than SQLite 3.8.3; hence, you will have to install SQLite 3.29.0 as follows:
(venv) [root@ip-172-31-95-213 django_app]# cd ..
(venv) [root@ip-172-31-95-213 src]# wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
(venv) [root@ip-172-31-95...