How to Install PIP in Command Prompt (2024) - Beginner Guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if I press windows and open my command prompt and try to install a library using pip install let's say pandas for now I get this error that says pip is not recognized that's because pip is not installed so let's see how we can install pip and how you can run or how you can install packages using pip in command prompt okay first go to your browser and go to this URL I'll have this in the link in the description you can just click on that or copy paste from there now scroll down where you see this get PIP dopy and now right click on this URL here and click on save link as and now you'll get an option to save this file so you can save it anywhere you want uh let's say I we save it inside this or we just save it inside downloads because it will be the default download directory for most people I'll just save it in downloads now click on save so once it is saved click on this open folder and this will be opened in your downloads folder now what you can do is just click on this URL and type CMG or if you are if you saved in desktop there is no URL what you can do is hold shift and right click and you will get this option that says open partial window here so you can just hold shift and right click or you can click on this and type CMD so for now I'll just hold shift and right click and click on open partial window here if you get the option that says open command prompt here that will work the same no worries and now type Python and type get and then hit Tab and it should autocomplete like this if not you can just manually type this and then hit enter now as you can see the installation of CP has started let's wait till this is complete now our p is successfully installed but still if you try to do something like P install pandas you will still get this error that says p is not recognized that's because pip is installed but we have not added pip to path now here you can see this directory right C users your username have local programs and so on what you need to do is you need to select this and then copy it right or just don't close this for now press Windows key and then type environment variables and click on this click on Enit variables now click on this path here and double click this and click on this empty row at the bottom and double click this and paste the path here and if there is an extra creatress in the front I'll remove it and then once the path is pasted if you have not copied it you can just see it from here manually and then write it here click okay okay here click okay again and now close your command pum of your power window and then let's open our Command pum again and now let's Ty pip install and this time as you can see we don't get an error and the installation has started this is how you can install p in command prom if you have any questions let me know in the comments below
Info
Channel: The Code City
Views: 10,869
Rating: undefined out of 5
Keywords: how to install pip in command prompt, pip install in command prompt, install pip in python, install pip windows, install pip for windows, install python pip, how to install pip for python, how to install pip to install python packages
Id: nj8gVMH6yR8
Channel Id: undefined
Length: 3min 33sec (213 seconds)
Published: Mon Jan 29 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.