You should open the terminal inside the VSCode and install the modules you want. something like👇

if that's not you meant, please let me know.
Answer from Mithilesh on Stack OverflowYou should open the terminal inside the VSCode and install the modules you want. something like👇

if that's not you meant, please let me know.
- First of all I would advise you to select the current Python version you have. It has been explained here:
VSCode: There is no Pip installer available in the selected environment
- Next, you should check is the pip installed in your Python main directory or not, by checking how to do on this website:
https://pip.pypa.io/en/stable/installing/
or this thread
How to use pip with Visual Studio Code
by typing
Use with AI py -m pip
in your terminal, like
Use with AI C:\Users\m\Desktop\Python> py -m pip
You should have the list of commands and general options which can be used. One of them is install
On the Python library platform, you always have the command to be copied in order to the installation of package you want.

In your terminal, the initial command should look as:
Use with AI
PS C:\Users\m\Desktop\Python> py -m
to which you should append the command prepared on the Python library platform (by copying it and pasting).
Use with AI C:\Users\m\Desktop\Python> py -m pip install openpyxl
That's it. The package should be installed in your Python folder, what you will see in the terminal.
If everything is alright, you just need to type
Use with AIimport openpyxl #or other package name, which you downloaded
and use it!
How to install packages on VS Code
How to set up python on vs code
How to install Python libraries to run in VSCode
Is there a Python package manager for Visual Studio Code?
How can I configure VSCode to use a specific Python interpreter for different projects?
You can specify a Python interpreter for each project by selecting the interpreter in the Command Palette (Ctrl+Shift+P) using the command "Python: Select Interpreter". This setting is saved in the project's .vscode/settings.json.
How do I set up VSCode to format Python code on save using Black?
To set up VSCode to format Python code using Black, go to Settings and search for "Python formatting provider", select "black", and ensure "Editor: Format On Save" is enabled.
What are some recommended extensions for Python data visualization in VSCode?
For data visualization, extensions like Plotly for Visual Studio Code and Jupyter Notebook Renderers can enhance your experience by providing interactive plots and rendering capabilities.
Hello! I'm completely brand new to any type of programming and am taking a coding class now to get introduced to it.
As part of my final project I need to make a program with astropy and numpy, but I have no idea how to install it in VS Code, which is what I've been using all semester. Whenever typing the normal install codes others have described in other posts, it gives me a syntax error. I have Python 3.13.3 installed, and that's the version it said it uses.
This whole thing is very confusing for me, so I hope it's not some small stupid mistake I'm making, but any help would be greatly appreciated