# install python3 and pip
sudo apt-get install python3 python3-pip
# Check if both python and pip were properly installed
python3 -v
pip3 -v
# Install Django using pip
pip3 install Django
# Check if Django installed properly
django-admin --version
python3 -m django --version # alternative method to the line above