On 06/01/2015 04:07 PM,
greenba...@gmail.com wrote:
> On Tuesday, 2 June 2015 09:43:37 UTC+12, Carl Meyer wrote:
>> On 06/01/2015 03:33 PM, orotau wrote:
>>> According to this
>>>
https://docs.python.org/3.4/library/venv.html#module-venv 'Each
>>> virtual environment has its own Python binary (allowing creation of
>>> environments with various Python versions)'
>>>
>>> So how would I create a virtual environment using the venv module
>>> that has a Python 2.7 binary?
>>
>> You can't. The venv module only exists in and supports Python 3.3+.
>>
>> If you need to support earlier Django versions, you'll need to use the
>> older "virtualenv" library instead, which looks very similar from the
>> end-user side. See
https://virtualenv.pypa.io/en/latest/
>
> Thanks Carl
> I am guessing that the documentation needs to be altered then. I will submit a documentation bug...
I think the documentation is accurate as written (you _can_ create
environments with various Python versions, they just have to be versions
that include and support the venv module), but a clarification on the
supported Python versions in that sentence seems reasonable to me.
Carl