Skip to content

Instantly share code, notes, and snippets.

@brxyxn
Last active June 7, 2022 05:14
Show Gist options
  • Save brxyxn/87e64881f4ed99801573333824f66413 to your computer and use it in GitHub Desktop.
Save brxyxn/87e64881f4ed99801573333824f66413 to your computer and use it in GitHub Desktop.
sudo apt update && sudo apt -y upgrade

# python3 -V || python -V
# sudo apt install software-properties-common
# sudo add-apt-repository ppa:deadsnakes/ppa
# sudo apt update
# sudo apt install python3.8
# optional: sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
# python3 --version
# python --version
# output: Python 3.8.10

sudo apt install -y python3-pip
# optional: sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
# pip --version
# pip3 --version
# output: pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

pip install django
sudo apt install -y python3-django
# django-admin --version
# output: 4.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment