if pip
is installed the following will work for sure
open a python shell then
import pip
pip.main(['install', 'packagename'])
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
( http://jelly.codes/articles/python-pip-module/ )
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