• How to install older python version on Debian

    From Robbi Nespu@21:1/5 to All on Fri Mar 26 03:00:02 2021
    Dear Debian Python,

    I would like to install older python (version 3.6) on my venv environment

    $ inxi -S
    System: Host: debian Kernel: 5.10.0-4-amd64 x86_64 bits: 64 Desktop:
    KDE Plasma 5.20.5
    Distro: Debian GNU/Linux bullseye/sid

    (venv)$ python --version
    Python 3.9.2

    on fedora I can easily do something like this[1], but on debian I
    wondering how I can achieve the same thing, as it look like and I guess
    older python are not available directly on repository

    $ sudo apt-cache pkgnames python3.
    python3.9-venv
    python3.9-examples
    python3.9-full
    python3.9-dbg
    python3.9-dev
    python3.9-doc
    python3.9
    python3.9-minimal

    If my guest are right. Could you suggest me a solution how to have
    multiple python version so I can load inside venv?

    [1] https://robbinespu.gitlab.io/blog/2019/07/23/Python-36-with-VirtualEnv/

    --
    Email : Robbi Nespu <robbinespu AT SPAMFREE gmail DOT com>
    PGP fingerprint : D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA
    PGP key : https://keybase.io/robbinespu/pgp_keys.asc

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geert Stappers@21:1/5 to Robbi Nespu on Fri Mar 26 07:50:01 2021
    On Fri, Mar 26, 2021 at 09:55:03AM +0800, Robbi Nespu wrote:
    Dear Debian Python,

    I would like to install older python (version 3.6) on my venv environment

    $ inxi -S
    System:
    Host: debian
    Kernel: 5.10.0-4-amd64 x86_64
    bits: 64
    Desktop: KDE Plasma 5.20.5
    Distro: Debian GNU/Linux bullseye/sid

    (venv)$ python --version
    Python 3.9.2

    on fedora I can easily do something like this[1], but on debian I wondering how I can achieve the same thing, as it look like and I guess older python are not available directly on repository

    $ sudo apt-cache pkgnames python3.
    python3.9-venv
    python3.9-examples
    python3.9-full
    python3.9-dbg
    python3.9-dev
    python3.9-doc
    python3.9
    python3.9-minimal

    If my guest are right. Could you suggest me a solution how to have multiple python version so I can load inside venv?

    [1] https://robbinespu.gitlab.io/blog/2019/07/23/Python-36-with-VirtualEnv/


    As I understand the question is it

    } What is the equivalent of
    } sudo dnf install python36
    } so that I can do
    } virtualenv --python=/usr/bin/python3.6 foo
    } source foo/bin/activate




    Groeten
    Geert Stappers
    --
    Silence is hard to parse

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to Robbi Nespu on Fri Mar 26 08:20:01 2021
    On Fri, Mar 26, 2021 at 09:55:03AM +0800, Robbi Nespu wrote:
    Dear Debian Python,

    I would like to install older python (version 3.6) on my venv environment

    $ inxi -S
    System: Host: debian Kernel: 5.10.0-4-amd64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.5
    Distro: Debian GNU/Linux bullseye/sid

    (venv)$ python --version
    Python 3.9.2

    on fedora I can easily do something like this[1],
    This only works as long as the version you need is in the repo. It's
    expected that a 2019 distro with 3.7 as the default may also include 3.6,
    which is somewhat different from what you expect here.

    If my guest are right. Could you suggest me a solution how to have multiple python version so I can load inside venv?
    Build it manually and install it somewhere in your user directory or use
    pyenv.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmBdibctFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh yRQP+wT6hBH7uetJe1eacrt5yIwpF0VxRkUFf7ieiAVOCljYnibFNyItfJNzfUWC 4Bu1tD/pY+Kme7sJ5dwgXR3DVk2dNGjhXuMQoUeEktTA2Uvq24rCNaUWp5ZHIgkl vafNgn8RteeGdCihF7TJajHYQG9dqZknj/tfkmRhI7uVw22NpWbPUb2ycy0jxT1Y MecZO7c2TDw+AaOqebfx0OVOwTy6bFjG7Jk6XjPtypGy4GvLDkICrGg1lr61hXpL lbNPWuzwdzMGjIxw/pqXONAQo7CaWmOoBMyeVHuYV4I1OZHHIDNeZBSfs+eSssem 6txEcHadFzyEJJSW+qLzYHnTp0Fizbuy8VX/946FLPGF0R9u1a3Ms1PJTTmZAkyq RUO7DjxDKFNONCt6AUrunnDz3vPBr/TdfQy3Tmsm6/cWNyofZN/PbuZ7F6J76bZ3 OejZPkZi49edKnQwM1O7HleeiPfm8DXtr6GdRizJNq3/Adk7vzbj+cjF0t8/Y+Vp WpodJcTdljnY0NBLgk+Onarm/aq5w/OnCOhMlXduY2UcX6m//JGkDYkEnF1utAr8 QPYz19MsIaaG8oqqBusl7sLrG75zCYQ8hUsKwS5A3qKqOjEQ6ftyVfnMHtNkN6LQ mZ9JANZalNTsJ/Nh52NP5Oqo2zUIqaeS05OA2XU5x8CMOkNJ
    =0C8e
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From {Pokoradi, Balazs}@21:1/5 to All on Fri Mar 26 10:40:01 2021
    Hello,

    I’d suggest you build it from source (python.org/ftp... with the needed version) as an additional python version, and then create your venv using the 3.6.

    You can dm me if you might need more details.

    Best regards,
    Balazs

    Отправлено с iPhone

    26 марта 2021 г., в 7:14, Andrey Rahmatullin <wrar@debian.org> написал(а):

    On Fri, Mar 26, 2021 at 09:55:03AM +0800, Robbi Nespu wrote:
    Dear Debian Python,

    I would like to install older python (version 3.6) on my venv environment

    $ inxi -S
    System: Host: debian Kernel: 5.10.0-4-amd64 x86_64 bits: 64 Desktop: KDE >> Plasma 5.20.5
    Distro: Debian GNU/Linux bullseye/sid

    (venv)$ python --version
    Python 3.9.2

    on fedora I can easily do something like this[1],
    This only works as long as the version you need is in the repo. It's
    expected that a 2019 distro with 3.7 as the default may also include 3.6, which is somewhat different from what you expect here.

    If my guest are right. Could you suggest me a solution how to have multiple >> python version so I can load inside venv?
    Build it manually and install it somewhere in your user directory or use pyenv.

    --
    WBR, wRAR

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Fri Mar 26 11:30:02 2021
    Hello,

    Id suggest you build it from source (python.org/ftp... with the needed version) as an additional python version, and then create your venv using the 3.6.

    You can dm me if you might need more details.

    It would be great to have a python-builder package whcih generates a pythonX.Y package from the upstream sources.

    or maybe so,ething like


    python-buildpackage Python2.7-src.tar.gz -> python3.6 pacakge

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to PICCA Frederic-Emmanuel on Fri Mar 26 11:20:02 2021
    On Fri, Mar 26, 2021 at 10:01:54AM +0000, PICCA Frederic-Emmanuel wrote:
    Hello,

    I’d suggest you build it from source (python.org/ftp... with the needed version) as an additional python version, and then create your venv using the 3.6.

    You can dm me if you might need more details.

    It would be great to have a python-builder package whcih generates a pythonX.Y package from the upstream sources.
    This would give a false suggestion that such a package works with packaged modules.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmBds8EtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh cygQAI7t3/nY90kFdTaSs15dmRpSIy5KrufmQXDrDufBY5pCBM/BCWVL9HojLGUn IVpYCCcZN/hEN3CFINK1rmpXxjODHDG+YGUVA6cu+C0Zu+bQmAgZaE4O/saWrM0E U/huetzJNL2Ej7SP9lRq2aXlLbD1cAL3wsO5P1pvST8tFixm4//Edzjbtu8gtqF2 SE9f3nQj6VndnvvNuJ3WNMbzmkQqf6I/1SNVAkXEOPqOwwmn2KUQOgV01a4o3dWK xI1tqns4dwbHpL5Q/lF43L+n/9bfAIUoL/NKefGWzYpmBJtNRORADd2tPrvkjBTu VfX2CzfgkRaznw7trFxXczY2lbCmMAH/aNefB/t6+EAg97W3dnYGYf7tKJXFXsMx 39eJk6BsR9H58f1rv1kzAAxyHmWRrWQrnaXuWrezieTXimtbQisrVDd2J4RyBGgp zSqyOF1Sfvqkpe52rexQwX4mbgW9ms8N+EnNEMFkQsqcVCF7K3t8hjqeU0yGeI8Z t8s/N/JycEDIpofbErBad7LE10VLFMWYVwpSl86ttXVizMODy2hTrG2cwOcSgUeL 35s5k7sT7AuycDwdZWNBIDBmyT0YPzsp14wQWgu+MSvvldqxqkUtNNlBVK4EVOq1 /jDByD0xdXQopL94Sfj+zeO+6jOpj4zW9wqxtL9gD55+QQ3r
    =8Vyg
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)