Re: proper python3 interpreter invocation
- In reply to: Tomek CEDRO : "proper python3 interpreter invocation"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Oct 2022 17:35:01 UTC
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.