The perils of multiple Pythons

justin walters walters.justin01 at gmail.com
Mon Apr 30 16:59:23 EDT 2018


On Mon, Apr 30, 2018 at 1:40 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Tue, May 1, 2018 at 6:22 AM, justin walters
> <walters.justin01 at gmail.com> wrote:
> > On Mon, Apr 30, 2018 at 10:32 AM, Chris Angelico <rosuav at gmail.com>
> wrote:
> >
> >> On Tue, May 1, 2018 at 3:30 AM, Ned Batchelder <ned at nedbatchelder.com>
> >> wrote:
> >> > On 4/30/18 1:15 PM, Chris Angelico wrote:
> >> >>
> >> >> https://xkcd.com/1987/
> >> >>
> >> >> So.... take-away is: On a Mac, just use Homebrew.
> >> >>
> >> >> (Cue the angry hordes telling me how wrong I am.)
> >> >>
> >> >
> >> > My take-away (though not really, since I held this view before this
> >> > morning): pick a way and stick to it.
> >>
> >> Well, yes. Until that way stops working, in which case you have to try
> >> another way. And that's when the problems start...
> >>
> >> ChrisA
> >> --
> >> https://mail.python.org/mailman/listinfo/python-list
> >>
> >
> > I feel like this problem is pretty handily solved by virtual
> environments.
> > Also, if a single project requires all of this,
> > perhaps Python isn't the best choice for the project.
>
> Some of it is definitely solved by venvs. But which Python binary do
> you use? And is venv installed? Do you need to install virtualenv
> first? How do you... etc, etc, etc, etc, etc. Endless fun!
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>

With Python 3.5+, venv is a built in module. If using a venv, default to
using the binary in the venv.

That's what I do anyways.



More information about the Python-list mailing list