I noticed in the screenshot you provided: The python environment you are currently using in VScode is the global environment ("python3.8.5" in the lower left corner of the screenshot), but the terminal is in the virtual environment (.venv), so VSCode cannot find this module.
Solution:
You can use the shortcut key Ctrl+shift+ ' to open a new terminal, and VSCode will automatically enter the current global environment, and the module can be imported and used after installation with "
pip install matplotlib":
You can also choose this
.venvenvironment with thematplotlibmodule installed:
Reference: Using Python environments in VS Code.
Answer from Jill Cheng on Stack OverflowI want to install some packages via Vscode but apparently I don't have pip installed, how do I do it?
I noticed in the screenshot you provided: The python environment you are currently using in VScode is the global environment ("python3.8.5" in the lower left corner of the screenshot), but the terminal is in the virtual environment (.venv), so VSCode cannot find this module.
Solution:
You can use the shortcut key Ctrl+shift+ ' to open a new terminal, and VSCode will automatically enter the current global environment, and the module can be imported and used after installation with "
pip install matplotlib":
You can also choose this
.venvenvironment with thematplotlibmodule installed:
Reference: Using Python environments in VS Code.
Because of that you Installed the anaconda.so if you try to install new packages, you will be installing on the anaconda rather than your Python OS. you should be Deactivate (base). follow these commands:
conda config --set auto_activate_base false
close your terminal and open it again. Now you can install packages
python - VSCode: There is no Pip installer available in the selected environment - Stack Overflow
How do I install PIP in my VS code?
python 3.x - How to use pip with Visual Studio Code - Stack Overflow
How do I install pip for Vscode on mac?
Can I install pip using a VSCode extension?
Does VSCode come with pip installed?
How do I upgrade pip in VSCode?
Videos
On Ubuntu16.04, I worked with Python3 in vscode and
apt-get install python3-pip
solves my problem.
That's because I discover that: Under my terminal, I type the pip -V. It displays it's for Python2, not for Python3.
Man you can only change the interpreter.
Go in (ctrl + shift + p), then type Python: Select Interpreter, this way you choose the version that your extension needs.
This worked for me.
I searched it up and all the tutorials are not working. It kept on saying that it "cannot be found" or something like that. I honestly don't know what I'm doing. I already downloaded Python 3.13, also pip3. What do I do? How do I put it into my VS code? pls help me
I found some solution on this website:
https://pip.pypa.io/en/stable/installing/
If you use Visual Studio Code, you can type the following command:
C:\> py -m pip
If everything is alright, you should see the list of commands, which you can use. They are listed in your terminal, as per below.

I also would advise you to check/select the version of Python you are using:
VSCode: There is no Pip installer available in the selected environment
I am pretty sure your problems of VSCode not finding the correct version of Python will be resolved if you add your ( Python 3.6 installation ) location to the system path.