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: 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 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aaiJJrXGddjcWb7aOblWjNeVA0hS29TVT Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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=20 >>> https://docs.python.org/3.4/library/venv.html#module-venv 'Each=20 >>> virtual environment has its own Python binary (allowing creation of=20 >>> environments with various Python versions)' >>> >>> So how would I create a virtual environment using the venv module=20 >>> 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/ >=20 > Thanks Carl > I am guessing that the documentation needs to be altered then. I will s= ubmit 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 --aaiJJrXGddjcWb7aOblWjNeVA0hS29TVT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVbNpkAAoJEC0ft5FqUuEhJZMQAKkEIbvsFbXC48wzwmE6jhz3 5cJ//4xb+wQ8mui1QD0LO5s+Dw0Oa/Gg0lOQaTZnh1HhPuEOzzTtbpLe1UBvGmIW 1oTZLONQne+Tr5oVaZo8zfJwPlMacfXyv41pDYAgGP4jg+Rt9PYqNJZLRddXU5VL BQpMXiMSMImZcWKo9Tc6cpeVlKKqtFX1rjYpHvQz0ptz0a3tlKAYOhD4uD4KzfA3 aQZlL0lvw9MMEyXJ5A+WYpQ9CkdWSvQmtlYIxZ9ZU9Smk1ZdwEpgmMOHcX/HAg65 UJSifyrExkytJ7Tb+Xa127FiTy/UPIpYSzKIpUEhKaWC9dnTTuNKilzrQXWgNzws Ehqx/3fVYjLBpBZc5RSwC3IVjMcQ6sQdtNmRU71PtflzciK9RxGwiQ2caCJbDKpV f1R2qi/6dsmIcTDbQdhllDZv3SsAVJXc16dA5g59HG4shVEnYDnCdi9ud82ME4Bu G0XRlocxKd/TTfWuiLP3z/yM3xJSvQobX9MbG1cth1w5zUZsq6LscG2AGU852UmZ iB/wKzJ6/i/9H7/IG/pUMscu4yuh94Cg0jFydFa8zoUshLAX2c2rlvMs59T1VXqn 35QAo8WDrX0BKZNCVcN6fhSNHRDXJK7hOt5Xo1005bb2b8sSpVJIXbI7zfZa+Ld3 IBqVowx92IfiUK7CuPX6 =39DF -----END PGP SIGNATURE----- --aaiJJrXGddjcWb7aOblWjNeVA0hS29TVT--