3 ms·
It is, but the problem with `venv` is that it can only use the same version of Python that you're using. E.g. if your Python installation is 3.8, your `venv` wi
by bheadmaster 3y ago
It is, but the problem with `venv` is that it can only use the same version of Python that you're using. E.g. if your Python installation is 3.8, your `venv` will also use 3.8.
Pyenv allows you to use whatever version of Python you want.
- alwayslikethis 3y agoMost systems allow you to keep multiple python installations, no? I think the best way is to specify the python when you do this: python3.11 -m venv env On most Linux distros you probably don't want to change your system python to whatever, because there are a lot of system programs that may not be compatible with a version other than what is on the system by default. Then once you activate it you can make sure your python
- 0x008 3y agoit's not a bug, it's a feature. just install the different python versions by downloading the binaries or through your package manager and run python3.<whatever_version_you_want> -m venv and the virtual environment will automatically, forever, use that python version when you activate it.