Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'binary': 0.05; 'python': 0.11; '2.7': 0.13; 'subject:python': 0.14; 'instead.': 0.15; '3.3.': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'library': 0.20; 'trying': 0.22; 'environments': 0.22; '2015': 0.23; 'module': 0.23; 'third-party': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.28; 'environment': 0.29; 'url:python': 0.33; 'received:google.com': 0.34; '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; 'pm,': 0.39; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'subject:with': 0.40; 'url:3': 0.60; 'url:4': 0.70; 'subject:Using': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DArAWoNpgWQWYQ2ynk+CGZHypO5GIBz5205H+oco5dc=; b=b8nd2+KWBbLGU+hO+l4dDWYsBXVQBtTGxl8RXusElOi7kZte0i9mmtELLmnl5sp6D0 FYzy+shKbuG5VFNcQzDjc9u6e8K9HVnzpwHbXJ5+zHBp9xNAq6TuTzArwvVygbRNN2c4 c/nPet5prgxMpNTdhRvOqEQtxaWRESEAMKsIPolFfygPYzWffpYMh19wW76bGrxYDGk5 IRNTogPxC/kgGje0bRHx8j4/2xcei++XzDOEIqjMH9Hpx/lt/5S8iRXeIwmbu4WAsILY BzvJ3YTT2kpqQa7AwAsesKPf79BaNU2LZMddIiBStkoI5ppPbqnzHaJY7fU0BOqm0ufQ 7CHQ== X-Received: by 10.50.36.9 with SMTP id m9mr16031236igj.15.1433194777269; Mon, 01 Jun 2015 14:39:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Mon, 1 Jun 2015 15:38:56 -0600 Subject: Re: Using a particular python binary with venv To: Python Content-Type: text/plain; charset=UTF-8 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433194780 news.xs4all.nl 2919 [2001:888:2000:d::a6]:34950 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91719 On Mon, Jun 1, 2015 at 3:33 PM, 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? I wouldn't recommend trying to create a venv virtual environment using Python 2.7, because venv was only added to the standard library in Python 3.3. Use the third-party virtualenv instead.