It�s really going to depend on the distribution and whether you have root access.
If you have Ubuntu and root access, you can add the deadsnakes repo,
https://launchpad.net/~deadsnakes, and install whatever Python you want.
The default �python3� remains but you can called a specific Python, (e.g. python3.10).
A typical shebang line would be:
#!/usr/bin/env python3.10
From: Python-list <python-list-bounces+gweatherby=
[email protected]> on behalf of Loris Bennett <
[email protected]>
Date: Tuesday, March 14, 2023 at 12:27 PM
To:
[email protected] <
[email protected]>
Subject: Distributing program for Linux
*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***
Hi,
If I write a system program which has Python >= 3.y as a dependency,
what are the options for someone whose Linux distribution provides
Python 3.x, where x < y?
I am aware that an individual user could use (mini)conda to install a
more recent version of Python in his/her home directory, but I am
interested in how root would install such a program.
Cheers,
Loris
--
This signature is currently under constuction.
--
https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!l02A4qczH46l1ScA8yisiIwlDKh96sy16woPSOSABWqym4b6dBtHzExfFwZsnPDezDwDqaM0fdCMs3080WQQZ-b5OghOOpI$<https://urldefense.com/v3/__https:/mail.python.org/mailman/
listinfo/python-list__;!!Cn_UX_p3!l02A4qczH46l1ScA8yisiIwlDKh96sy16woPSOSABWqym4b6dBtHzExfFwZsnPDezDwDqaM0fdCMs3080WQQZ-b5OghOOpI$>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)