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 Overflow
🌐
Visual Studio Code
code.visualstudio.com › docs › python › python-tutorial
Getting Started with Python in VS Code
November 3, 2021 - During the course of this tutorial, you learned how to create a Python project, create a virtual environment, run and debug your Python code, and install Python packages. Explore additional resources to learn how to get the most out of Python in Visual Studio Code!
Discussions

How to install packages on VS Code
Use the terminal window on the bottom of vscode. Don't put the command in your code. pip install numpy or py -m pip install numpy (if that does not work tell us what OS you are using) More on reddit.com
🌐 r/learnpython
11
5
July 6, 2025
How to set up python on vs code
I would suggest that you start off with Thonny IDE, as it requires virtually no "setting up", and even includes Python so that you don't need to set up Python either. It's a great IDE for beginners. When you have outgrown Thonny you will know a lot more about Python, so setting up vscode or PyCharm should be a lot easier for you. More on reddit.com
🌐 r/learnpython
11
6
October 17, 2024
How to install Python libraries to run in VSCode
You don't have to, but you should, create a venv for every project you work on. Your dependencies are going to vary wildly from one project to the next. // create a venv $ python -m venv venv // activate the python interpreter inside of it $ ./venv/bin/activate // install your requirements (venv)$ pip install seaborn More on reddit.com
🌐 r/learnpython
2
1
September 1, 2023
Is there a Python package manager for Visual Studio Code?
However, in VSC you have to use pip which may point to another interpreter Well, don't let your pip point to a different interpreter's packages directory, is the answer here. If your pip and your python don't agree on where packages go then your environment is broken and you should fix it. If you want to browse packages go to https://pypi.org/ . Typically when you want to install a package you already know exactly which one. More on reddit.com
🌐 r/learnpython
5
1
March 25, 2020
🌐
Reddit
reddit.com › r/learnpython › how to install packages on vs code
r/learnpython on Reddit: How to install packages on VS Code
July 6, 2025 -

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

🌐
Visual Studio Code
code.visualstudio.com › docs › python › environments
Python environments in VS Code
November 3, 2021 - Select Python version: pick from discovered interpreters (venv) or available Python versions (conda) Name your environment: enter a custom name or accept the default · Install dependencies: choose to install from requirements.txt, pyproject.toml, or environment.yml · Custom Create lets you configure each step. ... If uv is installed, the extension uses it automatically for venv creation and package installation, which is significantly faster than standard tools.
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › python › tutorial-working-with-python-in-visual-studio-step-05-installing-packages
Tutorial Step 5: Install Packages in Python Environment | Microsoft Learn
March 16, 2026 - This article presents Step 5 in ... in Visual Studio. All code in a Python project runs within the context of a specific environment. Examples of environments include a global environment, a virtual environment, a conda environment, and so on. The environment is used for any tasks that require language services that are specific to the Python version and a set of installed packages...
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › python
Python in Visual Studio Code
November 3, 2021 - This article provides only an overview of the different capabilities of the Python extension for VS Code. For a walkthrough of editing, running, and debugging code, use the button below. ... The tutorial guides you through installing Python and using the extension.
🌐
Medium
medium.com › @gbemiadekoya › importing-python-libraries-in-vs-code-e9e7806586a7
Importing Python Libraries in VS Code | by Gbemisola Adekoya | Medium
November 24, 2023 - In your new terminal, type e.g “pip install pandas” or whatever library you want to install and press enter. ... By the time we run our script again, it runs just fine. ... And that’s done!!
Find elsewhere
🌐
Hashnode
emminex.hashnode.dev › how-to-install-python-libraries-in-visual-studio-code
How to install Python Libraries in Visual Studio Code
October 16, 2025 - Learn how to easily install and manage Python libraries in Visual Studio Code. This beginner-friendly guide covers virtual environments, pip commands, etc.
🌐
Quora
quora.com › Which-pip-command-can-I-use-to-install-Python-packages-in-VS-Code
Which pip command can I use to install Python packages in VS Code? - Quora
Answer: “pip install ” This command needs to be run in a terminal (or command prompt on windows). To get this in VS Code, go to the “Terminal” option in the top bar, and then click “New Terminal”. You may need to use “pip3” instead ...
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
This section describes the steps to follow before installing other Python packages. Before you go any further, make sure you have Python and that the expected version is available from your command line. You can check this by running: ... You should get some output like Python 3.6.3. If you do not have Python, please install the latest 3.x version from python.org or refer to the Installing Python section of the Hitchhiker’s Guide to Python.
🌐
Visual Studio Code
code.visualstudio.com › docs › configure › extensions › extension-marketplace
Extension Marketplace
November 3, 2021 - When you install an extension, ... because Visual Studio Code cannot verify the extension signature. This error can be caused by a variety of reasons and should you encounter this error, exercise caution before deciding to install anyway. Disable extension signature verification with the extensions.verifySignature Open in VS Code Open in VS Code Insiders setting. For package integrity ...
🌐
Visual Studio Code
code.visualstudio.com › docs › python › editing
Editing Python in Visual Studio Code
November 3, 2021 - When using Pylance, the add import Quick Fix enables you to quickly complete import statements for modules that are installed in your environment. As you start typing a package name in the editor, a Code Action is available to automatically complete the line of source code. Hover over the text (marked with a squiggle) and select the Code Action light bulb. You can then select from the list of potential imports. This Code Action also recognizes some of the popular abbreviations for the following common Python packages: numpy as np, tensorflow as tf, pandas as pd, matplotlib.pyplot as plt, matplotlib as mpl, math as m, scipi.io as spio, and scipy as sp, panel as pn, and holoviews as hv.
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › cpp
C/C++ for Visual Studio Code
November 3, 2021 - In this terminal, install the MinGW-w64 toolchain by running the following command: pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain ... Accept the default number of packages in the toolchain group by pressing Enter.
🌐
Flutter
docs.flutter.dev › tools › vs-code
Visual Studio Code
To install the latest version of VS Code, follow Microsoft's instructions for the relevant platform: ... Start VS Code. Open a browser and go to the Flutter extension page on the Visual Studio Marketplace.
🌐
Visual Studio Code
code.visualstudio.com › docs › getstarted › getting-started
Tutorial: Get started with Visual Studio Code
March 9, 2026 - If you prefer a video to learn about Visual Studio Code, you can watch the Getting Started video on our YouTube channel. Download and install Visual Studio Code on your computer
🌐
Python
python.org
Welcome to Python.org
Python source code and installers are available for download for all versions!
🌐
Python
python.org › downloads
Download Python | Python.org
Installer packages for Python on macOS downloadable from python.org are signed with with an Apple Developer ID Installer certificate.
🌐
Scoop
scoop.sh
Scoop
A command-line installer for Windows
🌐
Scribd
scribd.com › document › 948514132 › How-to-Install-packages-in-VS-Code
Install Python Packages in VS Code | PDF
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Python GUIs
pythonguis.com › tutorials › getting started with vs code for python
How to Set Up VS Code for Python Development — Complete Beginner's Guide
September 21, 2022 - On Ubuntu/Debian, this can be done by typing sudo apt install python3. Both pip (or pip3) and venv are distributed as separate packages on Ubuntu/Debian and can also be installed by typing sudo apt install python3-pip python3-venv.