installing older version of python3

Need help with C, C++, perl, python, etc?

installing older version of python3

Postby morgon » 2020-10-22 00:01

Hi,

I am running Debian testing and have installed python 3.8.2.

For a particular software I now need python 3.7.

Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

Many thanks!
morgon
 
Posts: 164
Joined: 2010-08-28 03:04

Re: installing older version of python3

Postby sunrat » 2020-10-22 00:51

Your mysterious undisclosed "particular software" will probably work with python3.8 so just symlink it:
Code: Select all
ln -s /usr/bin/python3.8 python3.7

or maybe better:
Code: Select all
ln -s /usr/bin/python3 python3.7


This actually and surprisingly worked for me for one application which was looking for python2 after I had removed python2 in sid, just symlinked python2 to python3. Not guaranteed that would work for all python2 applications but much more likely it would work for python3.7 to 3.8.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: installing older version of python3

Postby morgon » 2020-10-22 01:21

Actually (and not so surprisingly as it is the topic of several issues) the GUI-framework kivy does not work (yet) with python 3.8.

Unfortunately I want to run katrain which does depend on it, so your hack does not work for me.
morgon
 
Posts: 164
Joined: 2010-08-28 03:04

Re: installing older version of python3

Postby sunrat » 2020-10-22 01:51

Looks like you can install kivy on python3.8 with pip - https://github.com/kivy/kivy/issues/656 ... -560039155
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: installing older version of python3

Postby morgon » 2020-10-22 02:28

It's not working with pip on my system.

Please do not "help" me anymore.
morgon
 
Posts: 164
Joined: 2010-08-28 03:04

Re: installing older version of python3

Postby sunrat » 2020-10-22 04:03

morgon wrote:It's not working with pip on my system.

Please do not "help" me anymore.

You're welcome. :mrgreen:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: installing older version of python3

Postby sickpig » 2020-10-22 08:08

morgon wrote:Is there any sensible way that I could install such an older version via aptitude so that both versions can coexist?

Code: Select all
update-alternatives

is Debian's very own tool to manage multiple versions of packages like python. A gui front-end is available via galternatives.
User avatar
sickpig
 
Posts: 589
Joined: 2019-01-23 10:34


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable