Forums

Python 2.5 instead of Python 3.7

Hi,

I am using the RUN in the EDIT MODE to execute my script. I was gotten an error which it wouldn't work in python 3 (only python 2.5 is allowed). So, may i know how could I run the script in V2.5 instead of V3.0 in the EDIT MODE environment? Please advise. Thanks

Hi there,

There are a few ways: https://help.pythonanywhere.com/pages/SaveAndRunPythonVersion

If you want to change your default we can also set it for you as well.

Just adding something to what Conrad said -- if your script requires specifically Python 2.5 then it won't work on PythonAnywhere -- we only support 2.6, 2.7, 3.3, 3.4 and 3.5. 3.7 hasn't been released yet. 2.5 is really very, very old and hasn't been receiving updates for a long time, so if you possibly can I'd definitely recommend running your script using 2.7, which should be fully compatible.

Got it. Thanks, buddy