Since pip 23.1, using pip in the system is disabled by defaut to prevent breaking system packages by overwriting dependencies. To avoid this, you can use a virtual environment (python3 -m venv env), ...
If Python is not working in Visual Studio Code Terminal, you receive Python is not recognized, or the script fails to execute ...