Skip to content

Instantly share code, notes, and snippets.

@noherczeg
Last active May 26, 2024 21:17
Show Gist options
  • 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
@noherczeg
Copy link
Author

noherczeg commented May 26, 2024

@vmrfriz sorry, I've not been using Manjaro for years, not sure what the current solution is.

I believe the proper way to manage python envs is pyenv:

https://github.com/pyenv/pyenv

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