[Python-ideas] venv *is* provided in the standard Python install on Debian/Ubuntu
antoine at python.org
Sun Nov 12 14:31:25 EST 2017
Le 12/11/2017 à 20:24, Stephan Houben a écrit :
> Hi Antoine,
> The venv module is included,
> however the pyvenv script is in a separate package
> python3.5-venv .
Thanks for the correction. That's definitely a silly decision --
especially as the "pyvenv" script must be very small anyway, perhaps
even smaller than the package metadata that goes with it?
It's not even internally consistent within Debian, as the "pyvenv"
script is packaged separately but the "pydoc" script is bundled with the
$ dpkg -S `which pyvenv`
$ dpkg -S `which pydoc`
(note also how "pyvenv" and not "pyvenv3" is installed by
> So many questions:
> * What is the status of "pyenv" in 3.5? Apparently it is not deprecated
> * What is it replaced by? Apparently "venv", but it doesn't say so
> * Is "venv" the same thing as "python -m venv" discussed earlier? Or is it a
> different thing? With so many things names so similarly, it is hard to
I guess so... Personally, I don't think that deprecation was a good
idea. As Nick says, there is point to be made for short
easy-to-remember commands such as "pyvenv" or "pip install".
> * What does it mean for "venv" to be recommend in 3.5 if "pyvenv" is not
> deprecated there?
Probably that "python -m venv" is the recommended replacement.
> I suppose at that point the newbie gave up and downloaded node.js ;-)
Perhaps not a good idea, but hey :-))
More information about the Python-ideas