How to Install Tensorflow in Python - VSCode Tutorial (2024)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to this video guys in this video I'll show you how you can install tensorflow in Python and visual studio code and we will also run a sample code using tensorflow so let's get started first click on file and click on open folder now if you already have a project open that project in my case I don't have a project so I'll click on new folder to create new project let's call it by tenser and click on select folder so this is empty for now because I don't have any files here so let's write some code I will use tensor flow right so here I have a sample code that uses tensor flow now here what we'll do is we will create a virtual environment now in your case if you are seeing a python version no matter just click on this and now click on cre a new virtual environment now virtual environment helps us to install Project Specific dependencies so if I have Transit flow version one in one project I can have Transit flow version two in another project so that's why we vir environment click on this V EnV and I'll choose Pon 3.9 for now and now as you can see virtual envirment is being created you will see this message here let's wait till this is finished so as you can see the following virtual environment is selected message is shown and our virtual envirment is created now what you need to do is click on Terminal click on new terminal and by the way if I go over here I'll say this import N Flow could not be resolved because flow is not yet installed right now what you need to do is you will you will see a do V message here because that virtual is selected if this is not selected what you can do is just type EnV that is this folder's name SL scripts and then activate do that hit enter okay why is it not not shown so now as you can see VNV is shown here so this means that our virtual m is active now we can install tensor frow just type pip install tensor frow hit enter and tensor FR will be now installed so as you can see T flow is now downloading and installing let's wait till this is finished so finally tensor Pro is now installed and as you can see that warning message is also gone now let's try to run this and let's see if this works click on this run button here and our t for code is now [Music] run so our tensor Pro is now imported and it is doing all these calculations so this is how you can install tenset frow in a virtual environment if you have any questions let me know in the comments below
Info
Channel: The Code City
Views: 2,885
Rating: undefined out of 5
Keywords: how to install tensorflow, install tensorflow in python, install tensorflow in vscode, how to install tensorflow in vscode, vscode tensorflow setup, setup tensorflow in python in vscode
Id: QpdjS9MrQNI
Channel Id: undefined
Length: 2min 56sec (176 seconds)
Published: Mon Feb 19 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.