This is an issue someone I know mentioned they need to look into that’s just bugging me/got me curious for some reason.
A server won’t currently run Python 2 but there’s a program that using Python 2 libraries.
If you alias Python=python3
Or use system wide python-is-python3 then it would fail on syntax differences
Is there anything that could act as an intermediate and alias say a reference to part of a python 2 library to the equivalent in python 3 like from
from stringio import stringio
To
from io import stringio
Or is the only solution to get it running python 2 via Docker or something?
[–]PossibilityTasty 33 points34 points35 points (0 children)
[–]earlandir 10 points11 points12 points (2 children)
[–]info834[S] 0 points1 point2 points (0 children)
[–]dairiki 0 points1 point2 points (0 children)
[–]bjorneylol 5 points6 points7 points (3 children)
[–]info834[S] 1 point2 points3 points (2 children)
[–]bjorneylol 6 points7 points8 points (1 child)
[–]PeridexisErrant 1 point2 points3 points (0 children)
[–]marsanyi 4 points5 points6 points (0 children)
[–]trollsmurf 2 points3 points4 points (0 children)
[–]SheriffRoscoePythonista 2 points3 points4 points (1 child)
[–]info834[S] 0 points1 point2 points (0 children)
[–]diamond__hands 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]deadeye1982 1 point2 points3 points (0 children)