How To Install NumPy in Visual Studio Code (Windows 11)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone in this video we're going to be talking about how to install numpy in visual studio code on windows 11. if you do not have visual studio code installed yet on your pc click on the video in the top right hand corner of your screen now or in the description down below to install it so let's get right into this tutorial let's begin by opening up visual studio code we head down to our search bar search visual studio code and right click it and we're going to run it as an ad bin so no potential permission errors pop up later now let's go on our desktop and create a brand new folder this will be for our numpy project so let's just call it this inside visual studio code let's open our numpy project we need a python file to import numpy into so let's create a new file through this button here and name it main dot pi the pi indicating that we are creating a python file now let's go up to view and open our terminal window i'm going to open up a terminal in command prompt like so as you can see we are indeed inside our newly created folder on our desktop based on this directory here so in order to import libraries into this python project we should create a python virtual environment to accomplish this let's head down to our terminal and type python 3.10 or whatever version of python you want to work with dash mvenv and then i'm going to call my virtual environment study session you can replace this with whatever you want though now if we go back to our file explorer on visual studio code you can see our virtual environment is now here also make sure that you are using the correct interpreter after creating your virtual environment you can do that like so let's first activate our virtual environment so that our terminal knows that we only want to work within this environment so we need to initiate this activate file here through our terminal that was created with our virtual environment to get there from our numpy folder we enter study session scripts and then activate and be sure to be using forward slashes when moving between folders now you can see we are working within our virtual environment because of these parentheses named here on the left of our terminal line to upgrade pip let's type pip 3 install dash dash upgrade pip and we will install the latest version of pip or it'll tell you you have the current version now to install numpy to our virtual environment we simply type pip install numpy and you should see a download begin like so to validate that numpy is working let's write the following simple code that creates a simple matrix to ensure that numpy is actually working within our virtual environment when we hit run we are presented with this matrix here which means numpy is now working thank you for checking out this video and i hope it helped your understanding of how to install numpy and visual studio code on windows 11. if you enjoyed please like subscribe and consider checking out our youtube memberships by clicking that join button down below however if you have any comments questions or concerns about the information i provided in this video please leave a comment down below and i will do my best to address your concerns
Info
Channel: StudySession
Views: 103,055
Rating: undefined out of 5
Keywords: How To Install NumPy in Visual Studio Code, numpy visual studio code, vscode numpy, numpy vscode, numpy, visual studio code
Id: q6dnyS-Ailo
Channel Id: undefined
Length: 4min 7sec (247 seconds)
Published: Wed Jun 29 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.