3 ms·
> - Environments, you don't need anything that isn't bundled with python, `python -m venv env` is the "official solution" and works really well. Except when yo
by aequitas 4y ago
> - Environments, you don't need anything that isn't bundled with python, `python -m venv env` is the "official solution" and works really well.
Except when you run on Debian based systems, where you need to install the module separately for the OS Python
$ python -m venv env
/usr/bin/python: No module named venv
- pid-1 4y agoSolution: don't use Debian. IMO the way most Linux Distro package managers install stuff is absolutely awful (system wide, no isolation, shared libs, shared PATH...)
- rbanffy 4y agoThat's one package you need to install (and that you only install if you'll be developing or testing Python packages). You'll want to install a lot more stuff (python-dev, build-essential) in that case anyway. OTOH, if you will just use the OS, you won't need venv, as Debian packagers make sure everything works out of the box without it.