- Run below command on linux terminal...
curl -SL https://gist.githubusercontent.com/govind0229/e580c6f8b3cde180d7487a2392bcbd16/raw/0535e383d78c1f57c4106d09d4c04615eb992fdf/python-install.sh 2>/dev/null | bash
#!/usr/bin/env bash | |
# ------------------------------------------------- | |
# Infiworx Docker Project | |
# Govind Kumar < [email protected]> | |
# ------------------------------------------------- | |
set -o nounset | |
cd /usr/local/src/ | |
echo "dowloading python latest version" | |
#read -p "Required Python verison [like: 3.7.0]: " version | |
#python latest verion | |
version=3.9.13 | |
wget https://www.python.org/ftp/python/$version/Python-$version.tgz 2>/dev/null | |
tar xvf Python-$version.tgz 2>/dev/null | |
cd Python-$version/ | |
./configure --enable-optimizations 2>/dev/null | |
make altinstall 2>/dev/null | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python${version:0:3} get-pip.py |
curl -SL https://gist.githubusercontent.com/govind0229/e580c6f8b3cde180d7487a2392bcbd16/raw/0535e383d78c1f57c4106d09d4c04615eb992fdf/python-install.sh 2>/dev/null | bash