'pip' is not recognized as an internal or external command, operable program or batch file. Cant find pip file
I have tried to install libraries using pip but my console doesnt recognize as a command. I checked the python/scripts folder and there was no ppip.exe in the folder. I reinstalled Python 3.6 a couple of times but I havent been able to use it. I tried it on another computer and pip installed itself with python 3.6.
I've seen answers that say to open a Python shell, then insert
python -m pip install 'packagename'
but i tried this and the shell marked invalid syntax at the end of writing pip
pip is installed the following will work for sure
open a python shell then
replace the packagename with the package you want to install
because of the path problem try to use absolute paths ( in windows beginning with drive letter i.e.
C:/.../.../pip.exe). in batch script it is generally good idea to use absolute paths. Alternatively check if your path has to be fixed : https://docs.python.org/3/using/windows.html
Operating systems search for executables in the system path. I.e. windows knows by default where its own executables are located because the directory is in the system path, however when new software is installed that contains executables like
pip the system path has to be edited to inform windows ( or linux ) where the new executables are located. The path is an environment variable. This is also valid for other languages and programs like java ( Environment variables for java installation ) ,...
Now your problem very likely is that the directory where the
pip.exe executable is stored is not part of your windows path. This has to be fixed like in https://docs.python.org/3/using/windows.html, chapter 3.3. Configuring Python
How to run Pip commands from CMD
#for default sudo apt install python-pip #for version specific python2.7 sudo apt install python2-pip for 3.x sudo apt install python3-pip
In some terminals try to use
$py -m pip install packagename
Of course you first have to import pip with