Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2022 13:35:01 -0400
From:      Michael Sierchio <kudzu@tenebras.com>
To:        Tomek CEDRO <tomek@cedro.info>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   Re: proper python3 interpreter invocation
Message-ID:  <CAHu1Y72GS3AaKV7_DVtDPUk84LLGRFUPTbwV_C2Jju7vYitRNg@mail.gmail.com>
In-Reply-To: <CAFYkXjn2Nc8Kn%2BLxDZjhBOaz5%2BA2xy_E86asBJikJGoeQNx6Eg@mail.gmail.com>
References:  <CAFYkXjn2Nc8Kn%2BLxDZjhBOaz5%2BA2xy_E86asBJikJGoeQNx6Eg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000071e505eb66a3a3
Content-Type: text/plain; charset="UTF-8"

On Tue, Oct 18, 2022 at 6:07 PM Tomek CEDRO <tomek@cedro.info> wrote:

>
> What would be the most valid way to invoke a Python 3 script?
>
> Two options are possible:
> 1. #!/usr/bin/env python
> 2. #!/usr/bin/env python3
>
>
Because there are so many python releases, I find it best to use venv and
proceed from there.  Especially when large and complex programs require
different packages, some of which are not entirely compatible with others.

The first invocation almost always will require the manual creation and
management of a symlink.

--0000000000000071e505eb66a3a3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Tue, Oct 18, 2022 at 6:07 PM Tomek CEDRO &lt;<a href=3D"=
mailto:tomek@cedro.info">tomek@cedro.info</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><br>
What would be the most valid way to invoke a Python 3 script?<br>
<br>
Two options are possible:<br>
1. #!/usr/bin/env python<br>
2. #!/usr/bin/env python3<br><br></blockquote><div><br></div><div>Because t=
here are so many python releases, I find it best to use venv and proceed fr=
om there.=C2=A0 Especially when large and complex programs require differen=
t packages, some of which are not entirely compatible with others.</div><di=
v><br>The first invocation almost always will require the manual creation a=
nd management of a symlink.=C2=A0 =C2=A0</div></div></div>

--0000000000000071e505eb66a3a3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y72GS3AaKV7_DVtDPUk84LLGRFUPTbwV_C2Jju7vYitRNg>