Python: Fix 'pip is not recognized' | Easy

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up my name is snake number here for troubleshoot and in today's video i'm going to run through a fairly common problem with python on a windows computer so assuming you open up a command prompt window and you tell it to pip install something such as url lib3 solve pip install url lib3 as such you hit enter and then instead of getting something like this saying you already have it installed or it's busy installing then you'll get something along the lines of pip is not a recognized command now of course this isn't specific to windows but this video today is going to show you how to fix that on windows so first of all you want to make sure that python is properly installed and added to your path with a command prompt window open simply type in python as such and see if you get dropped into the python interpreter as such if you do hit ctrl z enter to exit out of it but of course if it doesn't then try python 3 python 2 etc etc and if you get a pop-up like this that takes you to the microsoft store then obviously just ignore that but as you can see i have python installed properly already now there's a very easy way to fix this and a slightly more difficult way that may or may not work for you the first way is to go ahead and reinstall it though of course you'll only really want to do this if you have a few packages that you're more than happy to download and install again if you have hundreds of packages installed and you don't want to go through and install all of them again using pip then that's understandable of course the easiest way to solve this is to go ahead and download python from python.org and try and install it i'm currently using python 3.8.2 so that's what i'll be downloading after you download the installer from python.org and open it up you'll see something like this we can simply run repair and it should try and fix everything as is of course if you would like to nuke it and install just a couple of packages again when you're done you can simply click uninstall then open up the exact same installer and click install then follow through the options though when you get presented with an option of whether you'd like to include it in path or capitals make sure that is checked i'll guide you through that on a sandbox so i'm opening up python installer as you can see i can click install now but before you do that make sure to check add python to path then go ahead and follow through with the installation of course this is just a vm so i'll go ahead and close it then we get to the second slightly more involved and possibly may not work solution that might just work for you so assuming that you type python into the command prompt window over here and you don't see a response like this or python works and pip doesn't then we can go ahead and fix this the simplest way is to press start and type in python assuming that the python command works it should pop up somewhere on this list simply right click on python and then click open file location then we'll be taken across to the shortcut as such or into the actual folder if you see a bunch of shortcuts right click on python and then click open file location once again now we're in the install folder see python38 but of course this is probably somewhere different for you so next up let's go ahead and add this to our path if it's not already there press start and type in path path then click edit system environment variables and we'll get this popup click environment variables in the bottom right and we'll see this then locate path at the very top here under user variables but of course if you want to change it for all users you can try changing it in the path down here so i'll click on path at the top and then edit as you can see at the very top i already have c python 38 and c python 38 scripts now the scripts folder is where pip is actually installed there it is over there pip.exe we also have paper 3.8.exe and pip3.exe assuming that you have multiple installations these different ones over here are probably to help compatibility to point you to the correct install folder if you have multiple of them at its path but with that aside let's just say that see python38 was here and the scripts folder wasn't included well heading back to the path window simply make sure to open up these scripts as such and copy the directory or be ready to type it in then i'll click new and we'll paste in the address so see python38 scripts and then we'll click anywhere and that'll save and of course if you don't have python added as such we'll go ahead and add it like that now that we have both python and scripts here i'll go ahead and click ok and then ok once again ok closing out of this window if we go ahead and restart a command prompt window then type in python you should see that it works and pip you'll see that that works as well now in a couple of rare cases if this didn't work for you then hopefully repairing will work for you if repairing still doesn't work for you then i'd recommend making a list of packages that you downloaded with pip because the easiest solution for you from here is to go ahead and uninstall python then reinstall it completely from scratch if you'd like to move it to a different install location then now is your chance anyways that's about it for this video hopefully you found it somewhat useful my name's been technobaby here for troubleshoot and i'll see you all next time ciao
Info
Channel: TroubleChute
Views: 32,962
Rating: undefined out of 5
Keywords: pip is not recognized, pip is not recognized python 3.8, pip is not recognized command prompt, pip is not recognized in python, python, pip, pip is not recognized as an internal or external command, pip error, python error, pip not recognized, python programming, error, not recognized, python3, tutorial, how to add pip to path, install pip
Id: xhGWpnyVK8c
Channel Id: undefined
Length: 5min 21sec (321 seconds)
Published: Fri Aug 14 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.