'Python 2to3 command window conversion

I have some long scripts to convert from py2 to py3. Also, I am a beginner and I don't have experience with python.

On my computer (windows 10) I have python 27 and python 39.

I didn't understand how to convert the scripts from py2 to py3 with the function 2to3.py.

Path of the folder with the file: C:\Users\OneDrive\Desktop\prova\trackingExperiment

Path of the folder with function 2to3: C:\Program Files\Python39\Tools\scripts

On the command window I tried to run this: python C:\Python32\Tools\scripts\2to3.py -w trackingExperiment.py, but it gaves me the following output error: python can't open file 'C:\Python32\Tools\scripts\2to3.py': [Errno 2] No such file or directory.

Any suggestion?`What am I doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source