Where to run the command to update pip?

When I build I get a warning to update pip (see below). Where am I supposed to run the suggested command? If I open a git bash and run it there I am getting a message that pip is already updated.

 *  Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe run 

Processing release (platform: espressif32; board: esp32dev; framework: espidf)
----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.3.0+sha.8b5e233) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
 - framework-espidf @ 3.40403.0 (4.4.3)
 - tool-cmake @ 3.16.4
 - tool-esptoolpy @ 1.40400.0 (4.4.0)
 - tool-idf @ 1.0.1
 - tool-mconf @ 1.4060000.20190628 (406.0.0)
 - tool-ninja @ 1.9.0
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

[notice] A new release of pip available: 22.2.2 -> 22.3.1       
[notice] To update, run: python.exe -m pip install --upgrade pip
~/.platformio/python3$ python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\user\appdata\local\programs\python\python310\lib\site-packages (22.3.1)

This also didn’t help

~/.platformio/python3$ ./python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\user\.platformio\python3\lib\site-packages (21.3.1)
Collecting pip
  Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.3.1
    Uninstalling pip-21.3.1:
      Successfully uninstalled pip-21.3.1
  WARNING: The scripts pip.exe, pip3.10.exe, pip3.9.exe and pip3.exe are installed in 'C:\Users\user\.platformio\python3\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.3.1

It must be done with the python interpreter that PlatformIO uses, so open a CLI and use pio system info to find the “Python Executable”, then use that with -m pip install --upgrade pip.

Thanks @maxgerhardt. That worked.