I’m currently working on upgrading a system that I have at work, written in Python2.
I wanted to rewrite it in Python3 but after the first tests, it appears that lots of libraries it uses are also written in python2 (it was made a long time ago and it’s all homemade solutions).
I tried to launch the whole thing with python3 but I got an error at the first print because it’s not a function in python2.
Is there a way to easily convert the python2 code into python3 ? Maybe a way to import libraries specifying that it must use Python2 ?
Or should I just write my new code in Python2 ?
Thank you.
Gudrun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.