PIP: platformio requires Python '>=3.6' but the running Python is 2.7.10

I have a macbook pro early 2011 with os mojave
My version of python is

MacBook-Pro:~ mangulo$ python --version
Python 3.11.1

I made a ln symbolic to python 3.11 but I have version python 2.7 yet

The following message error is

**PIP: platformio requires Python '>=3.6' but the running Python is 2.7.10**

**You are using pip version 10.0.1, however version 22.3.1 is available.**

**You should consider upgrading via the 'pip install --upgrade pip' command.**

How I delete python 2.7.10. I don’t get it.

Could you try installer script and run it with python3?