Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91726

Re: Using a particular python binary with venv

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <carl@oddbird.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'binary': 0.05; 'versions,': 0.05; 'python': 0.11; '2.7': 0.13; 'subject:python': 0.14; 'django': 0.14; 'altered': 0.16; 'bug...': 0.16; "can't.": 0.16; 'filename:fname piece:signature': 0.16; 'from:addr:carl': 0.16; 'guessing': 0.16; 'received:173.255': 0.16; 'side.': 0.16; 'url:virtualenv': 0.16; 'wrote:': 0.16; 'exists': 0.18; '>>>': 0.20; 'library': 0.20; 'versions': 0.20; 'environments': 0.22; '2015': 0.23; 'module': 0.23; '(you': 0.23; 'seems': 0.24; 'header :In-Reply-To:1': 0.24; 'written': 0.24; 'header:User-Agent:1': 0.26; 'earlier': 0.27; 'supported': 0.27; 'then.': 0.27; 'looks': 0.29; 'sentence': 0.29; 'environment': 0.29; 'similar': 0.32; 'older': 0.32; 'url:python': 0.33; 'instead,': 0.33; 'to:addr :python-list': 0.35; 'according': 0.36; 'but': 0.36; 'url:org': 0.36; 'thanks': 0.36; 'url:library': 0.36; 'subject:: ': 0.37; 'creation': 0.38; 'virtual': 0.38; 'received:org': 0.38; 'supports': 0.38; 'pm,': 0.39; 'url:en': 0.39; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'submit': 0.39; 'subject:with': 0.40; 'url:3': 0.60; "you'll": 0.61; 'received:96': 0.63; 'email addr:gmail.com': 0.64; 'charset:windows-1252': 0.65; 'url:4': 0.70; 'end-user': 0.84; 'meyer': 0.84; 'subject:Using': 0.84; 'url:latest': 0.84
Date Mon, 01 Jun 2015 16:19:16 -0600
From Carl Meyer <carl@oddbird.net>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Using a particular python binary with venv
References <ca4f39e1-f02a-403f-b113-82e25201a2cd@googlegroups.com> <mailman.19.1433194962.13271.python-list@python.org> <fc1b77f4-cb0e-4f03-b383-00bbd15c1a02@googlegroups.com>
In-Reply-To <fc1b77f4-cb0e-4f03-b383-00bbd15c1a02@googlegroups.com>
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aaiJJrXGddjcWb7aOblWjNeVA0hS29TVT"
X-Spam-Status No (score -1.0): ALL_TRUSTED=-1, URIBL_BLOCKED=0.001
X-Spam-Bar -
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.22.1433197165.13271.python-list@python.org> (permalink)
Lines 59
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1433197165 news.xs4all.nl 2970 [2001:888:2000:d::a6]:56369
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91726

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 06/01/2015 04:07 PM, greenbay.graham@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using a particular python binary with venv greenbay.graham@gmail.com - 2015-06-01 14:33 -0700
  Re: Using a particular python binary with venv Ian Kelly <ian.g.kelly@gmail.com> - 2015-06-01 15:38 -0600
  Re: Using a particular python binary with venv Carl Meyer <carl@oddbird.net> - 2015-06-01 15:42 -0600
    Re: Using a particular python binary with venv greenbay.graham@gmail.com - 2015-06-01 15:07 -0700
      Re: Using a particular python binary with venv Carl Meyer <carl@oddbird.net> - 2015-06-01 16:19 -0600
      Re: Using a particular python binary with venv greenbay.graham@gmail.com - 2015-06-01 15:23 -0700
  Re: Using a particular python binary with venv Laura Creighton <lac@openend.se> - 2015-06-01 23:45 +0200

csiph-web