<div dir="ltr"><div><div><div><div><div><div>Hi Antoine,<br><br></div>The venv module is included,<br></div>however the pyvenv script is in a separate package<br></div>python3.5-venv .<br><br></div><div>By the way, I was totally confused by the following text form the doc.<br><br></div><div><a href="https://docs.python.org/3/library/venv.html">https://docs.python.org/3/library/venv.html</a><br></div><div><br>========<br><div class="gmail-deprecated"><span class="gmail-versionmodified">Deprecated since version 3.6: </span><code class="gmail-docutils gmail-literal"><span class="gmail-pre">pyvenv</span></code> was the recommended tool for creating virtual environments for
Python 3.3 and 3.4, and is <a class="gmail-reference external" href="https://docs.python.org/dev/whatsnew/3.6.html#deprecated-features">deprecated in Python 3.6</a>.
</div>
<div>
<p><span class="gmail-versionmodified">Changed in version 3.5: </span>The use of <code class="gmail-docutils gmail-literal"><span class="gmail-pre">venv</span></code> is now recommended for creating virtual environments.<br></p><p>========<br></p><span class="gmail-versionmodified"></span></div></div></div>So many questions:<br></div><div>* What is the status of "pyenv" in 3.5? Apparently it is not deprecated there.<br></div><div>* What is it replaced by? Apparently "venv", but it doesn't say so explicitly.<br></div><div>* Is "venv" the same thing as "python -m venv" discussed earlier? Or is it a<br></div><div>  different thing? With so many things names so similarly, it is hard to tell<br></div><div>* What does it mean for "venv" to be recommend in 3.5 if "pyvenv" is not deprecated there?<br><br></div><div>Also, the link brings us to a long page of "What's New in Python 3.6" .<br></div><div>Just searching for "venv" only gives the apparently irrelevant:<br></div><div><div class="gmail-section" id="gmail-venv"><p><a class="gmail-reference gmail-internal" href="https://docs.python.org/dev/library/venv.html#module-venv" title="venv: Creation of virtual environments."><code class="gmail-xref gmail-py gmail-py-mod gmail-docutils gmail-literal"><span class="gmail-pre">"venv</span></code></a> accepts a new parameter <code class="gmail-docutils gmail-literal"><span class="gmail-pre">--prompt</span></code>. This parameter provides an
alternative prefix for the virtual environment. (Proposed by Łukasz Balcerzak
and ported to 3.6 by Stéphane Wirtel in <a class="gmail-reference external" href="https://bugs.python.org/issue22829">bpo-22829</a>.)</p>"<br><br></div><div class="gmail-section" id="gmail-venv">I suppose at that point the newbie gave up and downloaded node.js ;-)<br><br></div><div class="gmail-section" id="gmail-venv">Stephan<br></div><div class="gmail-section" id="gmail-venv"><br>On Sun, 12 Nov 2017 12:20:45 +0000<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Paul Moore <<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>> wrote:<br>
><br>
> > Well, not exactly. Do you do python -m venv, or py -x.x -m venv or<br>
> > pythonx -m venv ? Wait, it's not installed by default on debian.<br>
><br>
> Seriously? Debian don't provide venv in the standard Python install?<br>
> That's just broken.<br>
<br>
Frankly, I don't know where the current discussion comes from, but on<br>
two recent Debian and Ubuntu setups, I get:<br>
<br>
$ dpkg -S /usr/lib/python3.5/venv/__init<wbr>__.py<br>
libpython3.5-stdlib:amd64: /usr/lib/python3.5/venv/__init<wbr>__.py<br>
<br>
<br>
Which, for the uninitiated, means "the venv module is provided by the<br>
Debian/Ubuntu package named libpython3.5-stdlib".  That package is, in<br>
turn, a dependency of the "python3.5" package.<br>
<br>
Regards<br>
<br>
Antoine.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
</blockquote></div><br></div></div>