Update issue when i am updating version 11 to 13

I am getting this error while using command - bench update --reset in frappe bench
help me regarding this.

please post the full traceback

@manasan tried bench update --patch and i get this error

You need to upgrade your python version. Try the below commands

bench migrate-env python3.7
bench setup requirements

@manasan i am getting error when i use command-- bench migrate-env python3.7

post the error

@manasan sure

After making sure you have data backup, try the below commands

bench migrate-env --no-backup python3.7
pip3 install --upgrade frappe-bench
bench setup requirements

@manasan i am getting same error in first and last command

what was the output of this command

also bench build and bench migrate commands not working in frappe-bench