I am using python to check whether pip is installed on the system or not. The code I have written is :
subprocess.run(["pip"],shell=True)
and I am getting the following error:
'pip' is not recognized as an internal or external command, operable program or batch file.
I have tried passing my system env to run using
env = os.environ.copy()
subprocess.run(["pip"],shell=True,env=env)
but still no luck. I installed pip on my Windows machine using get-pip.py