Skip to content

Instantly share code, notes, and snippets.

@noherczeg
Last active February 16, 2024 14:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noherczeg/fe9db442c5d64f14e5162f924c69630d to your computer and use it in GitHub Desktop.
Save noherczeg/fe9db442c5d64f14e5162f924c69630d to your computer and use it in GitHub Desktop.
# download source https://www.python.org/downloads/release/python-2712/
wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
tar -zxvf Python-2.7.12.tgz
cd Python-2.7.12
# install
./configure
make
sudo make install
# crate bin in home if not exists
mkdir ~/bin
ln -s /usr/bin/python2 ~/bin/python
PATH=~/bin:$PATH
# download and install pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
@mmv-ru
Copy link

mmv-ru commented Jun 12, 2022

for python 2.7
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py

@lamjiidii1
Copy link

Hi @noherczeg, you saved my day bro.

@dzwdev
Copy link

dzwdev commented Feb 16, 2024

after installing it: how to use it as default python? and how to remove it after using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment