make altinstall
The build command for installing Python from source without replacing the existing python3 command.
In more detail
After building Python from its source code, make altinstall installs it as, for example, python3.14 only, leaving the system's python3 alone. Plain make install would overwrite it.
Related terms
- system Python — The copy of Python that the operating system installs for its own tools, which you should leave alone.
- pyenv — A tool for macOS and Linux that builds and switches between several Python versions for your user.
Taught in
- Installing Python On Linux — Hands-on Python: Complete Video Course & Book