Last active
February 16, 2024 14:19
-
-
Save noherczeg/fe9db442c5d64f14e5162f924c69630d to your computer and use it in GitHub Desktop.
This file contains 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
# 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 |
Hi @noherczeg, you saved my day bro.
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
for python 2.7
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py