How can I update Python

Hi. Does anyone know how to update python in the “/usr/local/lib/python2.7/dist-packages/bench/cli.py”. I had upgraded my version or erpnext to version-13 and when I updated everything, this error shows up

you can’t update the specific python package. You will need to install a new python version. you should be able to do it with apt get install python3 or something like that

Oh ok I’ll try that one. Thanks!