Upgrading pip after Home Assistant update, how to?

After updating Home Assistant to homeassistant-2023.7.3
there’s the following output:

Successfully installed PyJWT-2.7.0 PyYAML-6.0.1 aiohttp-3.8.5 cryptography-41.0.1 homeassistant-2023.7.3 ifaddr-0.2.0 lru-dict-1.2.0 orjson-3.9.1 pyOpenSSL-23.2.0 requests-2.31.0 typing-extensions-4.7.1

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

Should the last command be run directly? Or first activate the python environment

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh

as indicated here:

Thank you for your feedback in advance.

No need to update pip. All nodules seems to be installed successfully.

exec sudo -u homeassistant dash -c ‘. /home/homeassistant/pyenv-activate.sh; exec pip3 install --upgrade pip’

You have to match the syntax of the update script. This works as of writing.

If you run it from ssh, it will probably log you out after running, as It’s meant for a script.

….though, my upgrade from the script didn’t run enough things, like updating python version.

dietpi-software reinstall 157

Is the better way to go.