| No and no. I don't know how you even get to this level of "making it harder for yourself". Say you want to use a specific version of python that is not available on Ubuntu. 1. Install build dependencies https://devguide.python.org/getting-started/setup-building/#... 2. Download whichever Python source version you want, https://www.python.org/downloads/source/. Extract it with tar 3. run ./configure --enable-optimizations --with-lto 4. run make -s -j [num cores] 5. sudo make altinstall This will install that specific version without overwriting default system python. You can then bash alias pip to python3.xx -m pip to make sure it runs the correct one. All the libraries and any pip install executable will be installed locally to ~/.local folder under the specific python version. Alternatively, if you work with other tools like node and want to manage different versions, you can use asdf, as it gives you per folder version selection. virtual environments are really only useful for production code, where you want to test with specific versions and lock those down. |
(I mean, except on Windows, your venvs default to symlinking the interpreter and other shared bits, so you aren't really isolating the interpreter at all, just the dependencies.)