How to install STREAMLIT in python | Install streamlit in VSCODE 🤩

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Why is this ever coming to make the term Streamlit   is not recognized as a as the name of  the CNB I have python I have vs code   I don't know what to do are you interested to know  the solution then you're the right place [Music]   today we will learn how to install Streamlit  end python that is installed Streamlit in vs   code and this is the most frequent error that  comes while installing Streamlit and being a   beginner for example someone like me who has a  finance background gets stuck into things like   this because we have no idea about the environment  variables we don't know anything about like what   to do Etc you'll not find any video on YouTube  or not even a Blog so that's why I thought that   I should make this video for you guys to install  Streamlit and then use this web application   for your personal uses hello guys I'm Ritvik  Dashora and I'm back with a new video and some   new learnings I'm making a playlist on Streamlit  and you guys already know that I make videos on   financial programming that is implementing  things in finance in the world of finance   using technology I've made videos on multiple  models like Monte Carlo simulation value address   Etc and things like trading bar using some  highly valuable Financial APIs in Python   etc etc so this is some something that you're  interested in then smash on the Subscribe button   ahead of the Bell icon and also because there's  a playlist that I'm making on Streamlit the first   video would be on what is streamlined and how to  install it because most of us get stuck in this   thing only like they cannot even install Streamlit  in vs code the second video would be on like what   are different functionalities of Streamlit are  useful and the third video would be on making a   financial dashboard so please stay tuned to this  playlist and also subscribe to my YouTube channel   looking at the usage of Streamlit Streamlit is  basically an open source web application framework   that is that can be accessed through Python  language and it can be used for multiple data   science and machine learning programs definitely  we can use Streamlit for machine learning and AI   as well but in this video to make it quite easy  for you guys to understand I am not going to use   anything in machine learning or Ai and I'll just  like focus on correct usage of Streamlit we'll be   making a financial dashboard in the third video  that I'll be uploading in this playlist and I'll   just try to keep things very very simple if I  get comments on like on making some videos on   machine learning as well then definitely I'll try  to cover those things as well so basically the   main idea is this that we get a web application  using a Streamlit this web web application is   like a front-end platform that you can use to  interact uh with the python code that runs in   the background you can use this to make a website  as well although some other tools are used more   frequently to build a website things like react  for example in this case I'm just going to stick   to the basic usage of making simple Streamlit web  application framework so guys coming to the error   that we are getting that is the term Streamlit  is not recognized and so on it's definitely a   big problem and the main reason for this issue  is environment variables now what the hell is   environment variables basically we need to provide  the address of python and Python scripts that are   present in our local system in the environment  variable such that it can be used in this vs code   to trigger any particular thing so basically  we have two solutions here for you the first   one is to put relevant paths in the environment  variables that I'm talking about and the second   one is very very easy that I'll talk in some time  so let's just look at the variable path first I'll   just go here in the start start button and just  write environment variables right if you click   here you'll see this involvement variable here  over there you just need to go to path segment   and then click on edit you can see there's no  python here so what we need to what we'll have   to do here is we'll just go to new and provide  the address where your python is set so I'll go   back here I'll just click right python here right  click open file location again right click open   file location so yeah this is the file location  that I have so what I need to do here is Ctrl   C is the path of this particular folder click  new control V then and then another click one   more time click new go back to the folder scripts  again Ctrl C come here now paste this particular   path and then click OK and then okay that's it  this is what you need to do guys and then this   will run so you'll have to restart this thing so  I'll just close it and open it again so guys I   restarted the vs code and if I just write oh here  if I just write stream let run and then Testing.py   if you guys have no idea what I'm doing right  now just I'll do everything in the second video   just wait for some time if I enter this thing  you'll see that you have the local host file   um this and it was automatically opened here  a web application on my Google Chrome and you   can see that it's localhost 8501 here this  is solution number one if you guys are still   facing some difficulty to do the the entire thing  what you can do here is let's go to control panel   uninstall this entire so the first step would  be to uninstall the entire python launcher and   python that you have so I'll just uninstall  this meanwhile it is getting uninstalled uh   you guys would have might be facing it in  the difficulty here as well so if I just   go to uh select interpreter because what I've  done here is basically I went to the control   panel and over here just like a selected select  interpreter I can just write it here as well to   to get to this one the select interpreter  and then you can see there's one path over   here you guys might be having two different  parts here this is another problem that uh   people face very frequently there's one path  here because this particular python if you can   see this app data local programs and Python and  then python 311 right this is the Python program   that I installed externally right there's one  that we can install internally in vs code as uh   in vs code through Microsoft Store yeah that is  another problem and that like putting that into   environment variable is very very difficult guys  so if you have installed python through Microsoft   Store just go to here just go to Microsoft Store  go to python here mostly this would be installed   in your computer if I just click here go here  and then uninstall this so I don't have it so   you'll have to uninstall this thing please don't  use Python that from Microsoft store this would   be running perfectly fine but uh putting it into  the environment variables would be a really really   difficult and tough task and this was the thing  that I was myself was actually facing a lot of   trouble into that's why the best thing here is to  not install this particular python that is through   Microsoft Store uninstall it right away I think  by now our python would have been installed yeah   so this is this has been uninstalled if I close my  vs code and open it again I should be getting an   error here perfect so you can see a red line over  here if I say run this particular code then you'll   see that there's no interpreter selected over here  so we can check it again here by clicking on this   command palette which is Ctrl shift p and click  here and just write interpreter interpreter and   click here you'll see there's no python installed  perfect that's absolutely fine now we'll go to the   website python like install python the connection  timed out so we'll just close this one as well so   this is the website that you can use to download  python the most updated version of python let's   click here let's install I clicked over here let's  stall this and now here is the main key you'll   have to click on ADD python dot exe to path if you  had done this thing previously then you would not   have got this particular error and then install  this thing so it will automatically put all the   relevant paths in the environment variables you  don't need to do anything over there it was as   simple as that so yeah it's done I'll close the  vs code again I'll go back to the command palette   select interpreter over here I can see python  is recommended which I will flick here just to   pip install Streamlit here again if you run this  thing you will get like you'll install Streamlit   tip just again click here write Streamlit run  and then Testing.py if I enter this you'll see   that we have got this localhost and automatically  open streamlined so that guys this is the way you   can install Streamlit and use it um in the next  video I will talk about the functionalities of   Streamlit and I'm not going to like tell you all  different types of functionalities definitely   because I'm the finance guy and so I'll just focus  on the things that can be used in the world of   Finance I am not going to I'm going to do any  complicated stuff here so please stay tuned the   next video will be on the usage of Streamlit and  the video after that would be on making Financial   uh dashboard that would be referring to First and  the second video if you like my video please click   on the Subscribe button and also the like button  that's really really important for me and if you   would like to support my work you can click on  the Patreon logo over here and become a Patreon   member this is not just a support you will get  many benefits also because I am connected with   all the Patreon members that I have and it's  an amazing experience that I give to all my   Patreon members so please consider joining  my Patreon community thank you so much bye
Info
Channel: Financial Programming with Ritvik, CFA
Views: 44,641
Rating: undefined out of 5
Keywords: how to install streamlit in python, install streamlit in vscode, streamlit install, streamlit installation, streamlit installation error, streamlit tutorial, streamlit python, streamlit dashboard, streamlit python tutorial, streamlit web app, streamlit app, streamlit, Ritvik, streamlight install
Id: zHAM5MGehV8
Channel Id: undefined
Length: 9min 4sec (544 seconds)
Published: Mon Dec 05 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.