Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: Python 3 virtualenvs Date: Sat, 28 Nov 2015 02:09:20 +0100 Lines: 40 Message-ID: References: <1mekmrs.1xn5n6010b7a1xN%real-not-anti-spam-address@apple-juice.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de d57h+Kif1nKJGgu0/hrBQAYZSIA+pz0W+B/g4AqY7d3g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'alias': 0.07; 'nasty': 0.07; 'ugly': 0.07; 'cc:addr:python-list': 0.09; 'mess': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; '2.7': 0.13; '>to': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'infinitely': 0.16; 'message- id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'url:debian': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; "aren't": 0.22; 'seems': 0.23; 'installation': 0.23; 'sat,': 0.23; 'url:bugs': 0.24; "i've": 0.25; 'turns': 0.27; 'away.': 0.29; 'received:se': 0.29; 'ago': 0.29; 'cc:no real name:2**1': 0.29; 'somebody': 0.30; 'url:python': 0.33; 'instead,': 0.33; 'nov': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'charset:us-ascii': 0.37; 'wanted': 0.37; 'things': 0.38; 'does': 0.39; 'header:Message-Id:1': 0.61; 'default': 0.61; 'realise': 0.66; 'url:cgi': 0.66; 'discover': 0.73; '2.7.': 0.84; '3.4': 0.84; 'complex.': 0.84; 'header:In-reply-to:1': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1448672964; bh=GoeMdCBdsUMH8Dvg591ww9jBI+SLyjnIbjKWIfiH874=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=SK7g5xt1VZFxd9c0yiyzkZ5+8wUQauMbBVBEh1LI8Q2HtVw7yEC2e1DAVRtAU4Ioj WHznfNv6v4tW8kqubr4rpGAKExyj6Cgr6TkI7ouQNVMAHjmdh88XgPMs4MF8rmcF9H k7A+l1vWDVNE1ss20ugpjTLjnUbL/lDrvEXF+C1c= In-reply-to: <1mekmrs.1xn5n6010b7a1xN%real-not-anti-spam-address@apple-juice.co.uk> Comments: In-reply-to real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) message dated "Sat, 28 Nov 2015 00:37:21 +0000." Content-ID: <9018.1448672960.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sat, 28 Nov 2015 02:09:24 +0100 (CET) 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: , Xref: csiph.com comp.lang.python:99647 In a message of Sat, 28 Nov 2015 00:37:21 +0000, D.M. Procida writes: >I have a new installation of Debian Jessie, with Python 2.7 and 3.4 >installed. > >I want to use Python 3.4 by default for most things, so I want >virtualenv to create Python 3.4 virtualenvs unless I ask it to >otherwise. > >It turns out that this seems to be inordinately complex. > >The best solution I have come up with is to alias virtualenv to >'virtualenv -p python3.5', which seems really ugly and clunky. This will get you python3.5 which I infinitely prefer over 3.4. = But you said you wanted to use 3.4 ... >Then I discover things like > >and realise it's not just me, it really is a nasty mess and nobody seems >to understand what's going on. > >Daniele What I found out. https://bugs.python.org/issue25151 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D732703 https://bugs.python.org/issue25152 https://bugs.python.org/issue25154 pyenv is going away. use python -m venv instead, if you want a = venv. You will never (unless somebody does a backport, which seems very unlikley) be able to get a venv with 2.7. I've long ago aliased virtualenv to v, so things aren't as clunky for me. Laura