Quote:
Originally Posted by JSWolf
Is there any way to run Python-Modernize with Windows 10?
|
Install Python 3.8.whatever then use pip install modernize. If you have installed Python other than in the default AppData location (I like it to be in Program Files), I'd recommend running that command from a administrative command prompt. Assuming the executables are on your path, you can either run:
python -m modernize -w file_to_be_updated.py
python-modernize file_to_be_updated.py
For help, run python -m modernize --help or python-modernize --help.
Just note that this will not give you a guaranteed to run Python 3 file, just that a lot of the gruntwork will have been done.