[Python-ideas] venv *is* provided in the standard Python install on Debian/Ubuntu
desmoulinmichel at gmail.com
Tue Nov 14 01:39:52 EST 2017
Le 12/11/2017 à 19:38, Antoine Pitrou a écrit :
> On Sun, 12 Nov 2017 12:20:45 +0000
> Paul Moore <p.f.moore at gmail.com> wrote:
>>> Well, not exactly. Do you do python -m venv, or py -x.x -m venv or
>>> pythonx -m venv ? Wait, it's not installed by default on debian.
>> Seriously? Debian don't provide venv in the standard Python install?
>> That's just broken.
> Frankly, I don't know where the current discussion comes from, but on
> two recent Debian and Ubuntu setups, I get:
> $ dpkg -S /usr/lib/python3.5/venv/__init__.py
> libpython3.5-stdlib:amd64: /usr/lib/python3.5/venv/__init__.py
> Which, for the uninitiated, means "the venv module is provided by the
> Debian/Ubuntu package named libpython3.5-stdlib". That package is, in
> turn, a dependency of the "python3.5" package.
Screenshot from yesterday morning. On Ubuntu 16.04, LTS of most popular
Linux distro based on debian: we can see venv is clearly missing.
On the bright side, it does give you an error message. We should have
that for pip as well !
Unfortunatly, the message gives you a wrong advice, as you had to run the:
sudo apt-get install python3.6-venv
command and not:
sudo apt-get install python-venv
And my students were stucks.
And this was a traning with professional adults java devs. Imagine total
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1217278 bytes
Desc: not available
More information about the Python-ideas