2 ms·
Install dependencies with apt (a few popular pages on google for this). Download tarball. Configure. Final step is ‘make altinstall’ and then you can use it sta
by whalesalad 4y ago
Install dependencies with apt (a few popular pages on google for this). Download tarball. Configure. Final step is ‘make altinstall’ and then you can use it standalone. If you already use virtual environments you would then recreate your venv and the rest of your experience would remain the same. I’d share actual syntax but I’m mobile right now.
Alternatively a tool like pyenv makes this much easier.
- TekMol 4y agoThis might be above my paygrade, but let me try: >>> Install dependencies with apt (a few popular pages on google for this). I don't know what this means :) So let's go to step 2: >>> Download tarball. Me tries this: wget 'https://www.python.org/ftp/python/3.11.0/Python-3.11.0a1.tgz' >>> Configure. What does this mean? >>> make altinstall I guess I somehow need to untar the tar thing first? Me tries this: tar -xf Python-3.11.0a1.tgz Hurray, I have a directory :) Let's cd into it: cd Python-3.11.0a1 And now the make altinstall? make altinstall Gives me: bash: make: command not found Hm... apt install make make altinstall Gives me: make: *** No rule to make target 'altinstall'. Stop. Hm... yeah, looks like it is beyond my paygrade.
- teddyh 4y ago> >>> Configure. > What does this mean? It means to run the “./configure” script first, which is normally present in the unpacked tar file. Also, on Debian, to compile programs, you usually first have to install the “build-essential” package.
- TingPing 4y ago> > Install dependencies with apt (a few popular pages on google for this). > I don't know what this means :) So let's go to step 2: `apt-get build-dep python3`