sudo apt update
sudo apt -y upgrade
python3 -V
sudo apt install -y python3-pip
sudo apt install -y build-essential libssl-dev libffi-dev python3-dev
Within the virtual environment, you can use the command python instead of python3, and pip instead of pip3
sudo apt install -y python3-venv
cd [project-directory-name]
python3 -m venv .venv
. .venv/bin/activate
To leave the environment
deactivate
Within virtual environment (.venv)
pip install django
django-admin --version
django-admin startproject core
Then run project on django development server
python manage.py runserver