Skip to content

Instantly share code, notes, and snippets.

@intuol
Forked from sumanthratna/install-python.bash
Last active November 24, 2022 03:24
Show Gist options
  • Save intuol/5bfdfc7fc15f860d49a03510e6202456 to your computer and use it in GitHub Desktop.
Save intuol/5bfdfc7fc15f860d49a03510e6202456 to your computer and use it in GitHub Desktop.
How to install Python 3.9.4 on Linux without sudo access.
# adapted from https://web.archive.org/save/https://randomwalk.in/python/2019/10/27/Install-Python-copy.html Edited by intuol.
wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tgz
tar zxfv Python-3.9.4.tgz
rm Python-3.9.4.tgz
find ./Python-3.9.4/Python -type d | xargs chmod 0755
cd Python-3.9.4
./configure --prefix=$PWD/Python-3.9.4/Python
make
make install
export PATH=$CWD:$PATH # adds python3.9.4 to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment