I’m trying to run a .ipynb notebook in VS Code with Python 3.11.0. I have already installed the Jupyter extension and Python extension in VS Code. Everything works fine when I run the same code as a .py file, but when I open the notebook and run a cell, VS Code keeps showing:
Running cells with 'Python 3.11.0' requires the pip, jupyter and notebook package.
Then if I click "Install", it says:
There is no pip installer available in the selected environment.

I confirmed that I have pip, jupyter, and ipykernel installed.
Running these commands in CMD shows everything works:
python -m pip show pip
python -m jupyter notebook
(it opens normally in the browser)
The Python path in VS Code is the same as in CMD: C:\Program Files\Python311\python.exe.
Restarted VS Code and reinstalled the Python and Jupyter extensions.
Still, VS Code doesn’t detect pip or jupyter in that environment.
What I expected: Jupyter notebook cells in VS Code should run normally using my global Python 3.11.0 environment.
What actually happens: It keeps saying the environment doesn’t have pip/jupyter, and stays “Connecting to kernel…” forever.