installing python packages in visual studio code

py -m pip install numpy

Here is what the above code is Doing:
1. It’s creating a virtual environment called “venv”
2. It’s activating the virtual environment
3. It’s installing numpy in the virtual environment
4. It’s deactivating the virtual environment

Now, if you want to use numpy, you need to activate the virtual environment.

To activate the virtual environment, run the following command:

source venv/bin/activate

To deactivate the virtual environment, run the following command:

deactivate