Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13291 > unrolled thread

How to install older python version on Debian

Started byRobbi Nespu <robbinespu@gmail.com>
First post2021-03-26 03:00 +0100
Last post2021-03-26 11:30 +0100
Articles 6 — 5 participants

Back to article view | Back to linux.debian.maint.python


Contents

  How to install older python version on Debian Robbi Nespu <robbinespu@gmail.com> - 2021-03-26 03:00 +0100
    Re: How to install older python version on Debian Geert Stappers <stappers@stappers.nl> - 2021-03-26 07:50 +0100
    Re: How to install older python version on Debian Andrey Rahmatullin <wrar@debian.org> - 2021-03-26 08:20 +0100
      Re: How to install older python version on Debian "{Pokoradi, Balazs}" <pokoradi.1899@gmail.com> - 2021-03-26 10:40 +0100
        Re: How to install older python version on Debian Andrey Rahmatullin <wrar@debian.org> - 2021-03-26 11:20 +0100
        RE:How to install older python version on Debian PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2021-03-26 11:30 +0100

#13291 — How to install older python version on Debian

FromRobbi Nespu <robbinespu@gmail.com>
Date2021-03-26 03:00 +0100
SubjectHow to install older python version on Debian
Message-ID<BWJVw-3cu-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#13292

FromGeert Stappers <stappers@stappers.nl>
Date2021-03-26 07:50 +0100
Message-ID<BWOs9-6aP-3@gated-at.bofh.it>
In reply to#13291
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

[toc] | [prev] | [next] | [standalone]


#13293

FromAndrey Rahmatullin <wrar@debian.org>
Date2021-03-26 08:20 +0100
Message-ID<BWOVb-6E1-3@gated-at.bofh.it>
In reply to#13291

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#13294

From"{Pokoradi, Balazs}" <pokoradi.1899@gmail.com>
Date2021-03-26 10:40 +0100
Message-ID<BWR6F-80K-1@gated-at.bofh.it>
In reply to#13293
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

[toc] | [prev] | [next] | [standalone]


#13303

FromAndrey Rahmatullin <wrar@debian.org>
Date2021-03-26 11:20 +0100
Message-ID<BWRJo-8uL-7@gated-at.bofh.it>
In reply to#13294

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#13305

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2021-03-26 11:30 +0100
Message-ID<BWRJo-8uL-9@gated-at.bofh.it>
In reply to#13294
> 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.

or maybe so,ething like


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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web