Skip to content

Instantly share code, notes, and snippets.

@govind0229
Last active June 20, 2022 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save govind0229/e580c6f8b3cde180d7487a2392bcbd16 to your computer and use it in GitHub Desktop.
Save govind0229/e580c6f8b3cde180d7487a2392bcbd16 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# -------------------------------------------------
# Infiworx Docker Project
# Govind Kumar < govind.sharma@live.com>
# -------------------------------------------------
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

Python + pip installaiton step for Centos, Ubuntu

bash shell script for installing python + pip.
  • Run below command on linux terminal...
curl -SL https://gist.githubusercontent.com/govind0229/e580c6f8b3cde180d7487a2392bcbd16/raw/0535e383d78c1f57c4106d09d4c04615eb992fdf/python-install.sh 2>/dev/null | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment