Skip to content

Instantly share code, notes, and snippets.

@sumanthratna
Last active August 19, 2024 09:14
Show Gist options
  • Save sumanthratna/17a265ffbcc846259ee7e59e80c2b8a4 to your computer and use it in GitHub Desktop.
Save sumanthratna/17a265ffbcc846259ee7e59e80c2b8a4 to your computer and use it in GitHub Desktop.
How to install Python 3 on Linux without sudo access.
# adapted from https://web.archive.org/web/20200514221628/https://randomwalk.in/python/2019/10/27/Install-Python-copy.html
wget https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz
tar zxfv Python-3.6.10.tgz
rm Python-3.6.10.tgz
find ./Python-3.6.10/Python -type d | xargs chmod 0755
cd Python-3.6.10
./configure --prefix=$PWD/Python-3.6.10/Python
make
make install
export PATH=$CWD:$PATH # adds python3.6 to PATH
@dumorando
Copy link

what if i dont hgave make installled

@sumanthratna
Copy link
Author

@dumorando installing make without sudo access sounds tricky -- my only suggestion would be to try this: https://askubuntu.com/a/350

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