[Twisted-Python] Update Getting started with Pip
In the top left-hand section of https://twistedmatrix.com, can someone with edit permissions to the page change: $ virtualenv try-twisted $ . try-twisted/bin/activate $ pip install twisted[tls] $ twist --help to something like: On Python 2: $ python -m virtualenv try-twisted On Python 3: $ python3 -m venv try-twisted On Python 2 or 3: $ . try-twisted/bin/activtate $ pip install twisted[tls] $ twist --help At least with base Python 3, using the venv module is preferred: https://docs.python.org/3/library/venv.html -- Craig
On May 19, 2018, at 1:07 PM, Craig Rodrigues <rodrigc@crodrigues.org> wrote:
In the top left-hand section of https://twistedmatrix.com <https://twistedmatrix.com/>, can someone with edit permissions to the page change:
$ virtualenv try-twisted $ . try-twisted/bin/activate $ pip install twisted[tls] $ twist --help
to something like:
On Python 2: $ python -m virtualenv try-twisted
On Python 3: $ python3 -m venv try-twisted
On Python 2 or 3: $ . try-twisted/bin/activtate $ pip install twisted[tls] $ twist --help
At least with base Python 3, using the venv module is preferred: https://docs.python.org/3/library/venv.html <https://docs.python.org/3/library/venv.html>
The "pyenv" script referenced by that documentation was a script that came with Python itself, not "virtualenv". Virtualenv is not deprecated, and behaves more consistently between 2 and 3. I don't think that adding more complexity to these instructions is a good idea, especially with no clear benefit. Let's not make the change. -g
participants (2)
-
Craig Rodrigues
-
Glyph