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


Groups > comp.lang.python > #99647

Re: Python 3 virtualenvs

From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: Python 3 virtualenvs
Date 2015-11-28 02:09 +0100
Message-ID <mailman.179.1448672987.20593.python-list@python.org> (permalink)
References <1mekmrs.1xn5n6010b7a1xN%real-not-anti-spam-address@apple-juice.co.uk>

Show all headers | View raw


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
><http://askubuntu.com/questions/603935/pyvenv-vs-venv-vs-python-virtualenv-vs-virtualenv-and-python-3>
>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=732703
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

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


Thread

Python 3 virtualenvs real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) - 2015-11-28 00:37 +0000
  Re: Python 3 virtualenvs Laura Creighton <lac@openend.se> - 2015-11-28 02:09 +0100
    Re: Python 3 virtualenvs real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) - 2015-11-28 01:35 +0000
  Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs) Ben Finney <ben+python@benfinney.id.au> - 2015-11-28 12:42 +1100
  Re: Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs) Laura Creighton <lac@openend.se> - 2015-11-28 03:23 +0100
  Re: Faviourite improvements in Python 3.5 (was: Python 3 virtualenvs) INADA Naoki <songofacandy@gmail.com> - 2015-11-28 16:17 +0900
  Re: Python 3 virtualenvs Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-11-28 13:29 +0000
    Re: Python 3 virtualenvs real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) - 2015-11-28 19:37 +0000
      Re: Python 3 virtualenvs Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-11-28 21:48 +0000
        Re: Python 3 virtualenvs Lele Gaifax <lele@metapensiero.it> - 2015-11-29 13:19 +0100
        Re: Python 3 virtualenvs Laura Creighton <lac@openend.se> - 2015-11-29 13:27 +0100
          Re: Python 3 virtualenvs Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-11-29 13:23 +0000
            Re: Python 3 virtualenvs Laura Creighton <lac@openend.se> - 2015-11-29 15:12 +0100
            Re: Python 3 virtualenvs Carl Meyer <carl@oddbird.net> - 2015-11-30 09:32 -0700
            Re: Python 3 virtualenvs Laura Creighton <lac@openend.se> - 2015-11-30 18:20 +0100
            Re: Python 3 virtualenvs Carl Meyer <carl@oddbird.net> - 2015-11-30 10:28 -0700
              Re: Python 3 virtualenvs Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-11-30 17:30 +0000
            Re: Python 3 virtualenvs Laura Creighton <lac@openend.se> - 2015-11-30 18:46 +0100

csiph-web