How To Install NumPy in Visual Studio Code (Mac)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone in this video we're going to talk about how to install numpy in visual studio code on a mac if you do not have visual studio code installed yet on a mac click the video in the top right hand corner of your screen now or in the description down below to quickly install visual studio code on your mac so let's get right into this tutorial let's begin by opening a visual studio code by hitting command in space searching visual studio code and hitting enter now let's go on our desktop and create a brand new folder this will be used for our numpy project so i'm going to call it such now inside visual studio code let's open our numpy project now we need a python file to import numpy into right so let's create a new file through this button here and name it main.pi this will be our main script for the project and also the pi is indicating that we are creating a python file now let's go up to view and open our terminal window here 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 our folder we first need to create a python virtual environment to accomplish this let's head down to our terminal and type python 3.9 or whatever version of python you are currently working with dash m v e n v and then the name of your virtual environment which i will call study session now if we go back to the file explorer on visual studio code you can see our virtual environment is now here so let's first activate our virtual environment so that our terminal knows that we only want to work within this environment to do this type source and then the activate file that was created with our virtual environment source study session bin activate now you can see we are working within our virtual environment because of these parentheses name here on the left of our terminal line to upgrade pip let's type pip install dash dash upgrade pip and we will install the latest version of pip now to install numpy to our virtual environment let's type pip install numpy and you should see a download begin like so to validate this let's write the following simple code that creates a simple matrix to ensure that numpy is working within your virtual environment correctly when we hit run we are presented with our 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 into visual studio code on a mac 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: 30,155
Rating: undefined out of 5
Keywords: How To Install NumPy in Visual Studio Code, install numpy vscode, numpy vscode, visual studio code numpy, numpy visual studio code
Id: sPRCN23h5zA
Channel Id: undefined
Length: 3min 37sec (217 seconds)
Published: Sat Jun 25 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.