Last active
April 24, 2024 04:15
-
-
Save pavank/3781878144cc5f835793ec102d71da81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To install all currently supported python versions (python 3.6 is already pre-installed) including pip for Ubuntu 18.04 do the following: | |
# Install Python 3.7 System wide | |
echo "Installing Python 3.7..." | |
sudo -S add-apt-repository ppa:deadsnakes/ppa -y | |
sudo -S apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
python3.7 \ | |
python3.7-dev \ | |
python3.7-venv | |
#Upgrade pip ENV PYTHON_PIP_VERSION 19.x.x | |
echo "Upgrading Python ..." | |
sudo -S apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
python-minimal \ | |
python-pip \ | |
python3-pip | |
sudo -S pip install --upgrade pip | |
sudo -S python3.7 -m pip install --upgrade pip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment