Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'binary': 0.05; 'versions,': 0.05; 'python': 0.11; '2.7': 0.13; 'subject:python': 0.14; 'django': 0.14; "can't.": 0.16; 'filename:fname piece:signature': 0.16; 'from:addr:carl': 0.16; 'received:173.255': 0.16; 'side.': 0.16; 'url:virtualenv': 0.16; 'wrote:': 0.16; 'exists': 0.18; 'library': 0.20; 'environments': 0.22; 'module': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'earlier': 0.27; 'looks': 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; 'url:org': 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; '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; 'subject:Using': 0.84; 'url:latest': 0.84 Date: Mon, 01 Jun 2015 15:42:33 -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="NKAC0xeOLCeDeExeCNH1OJGaNtRSStCWF" 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433194962 news.xs4all.nl 2928 [2001:888:2000:d::a6]:37653 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91720 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NKAC0xeOLCeDeExeCNH1OJGaNtRSStCWF Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 06/01/2015 03:33 PM, greenbay.graham@gmail.com 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/ Carl --NKAC0xeOLCeDeExeCNH1OJGaNtRSStCWF 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 iQIcBAEBCAAGBQJVbNHJAAoJEC0ft5FqUuEhpm8QAJrGmjwlbyCTf6N1C4ipk8XP wnlMcGQf9OwOuhREqdfNbNg9oC1GnrbU2osKI86F1W4NRNv7NifiDdHTaJOC84xz gSNYtOOIEOwh9Sbj545wjx8yyLW0eWpAZlWNJ7io0hjJdl4tt+Xcc37CiL+iCa9y UiZQgd4sApe2+K0ahtjtHTdriNecgoTESFCGt0vr67fI5op9UsGNTa+bCae259WG BdDB6Mg3ds53iBqTVmJJEeQHaEP/81SKLbOAHjcya3jkrBsYPV9C3FMoloROIbuk 5QrJzABwAk5Q2ti7ip9jmR4TQMgIGPtzywhpCar5SJ442VjFNuGBNPshHGEH/3sP PaHQvqq+E6HMuWTXF8EKZy/piokWBiahl78Lj/h4NMIvDO1koIPzWEM/ai88oc/4 otc6grwlYepiWRX2U0T+UD/yXyTaETh9QqA6shNECAEDiIlaGcmHOOdVSatfXpTs mvxHteE2P+Ruwojr5IdRhwd60hwCXmFjwxfjEWQLb1LN3kdqpztlRrD3tmAwsXP3 aTAf0IuuKZ2YVEtqB4A4K3193bJdsBQ5z3Cu6tzgR21o3R+TMYsTpfH/cMHyk3xT wJHU+zGsaonqQm8vJ0ymmGjiWLmTarhee/dnI9AF0q2zYKehaM8LhTNtFSAnjGc4 9ZgeuIfPZcGqdqw0GNAu =kqu1 -----END PGP SIGNATURE----- --NKAC0xeOLCeDeExeCNH1OJGaNtRSStCWF--