python don't find pip code example
Example 1: 'pip' is not recognized as an internal or external command, operable program or batch file.
py -m pip install [packagename]
Example 2: using pip windows cmd
python -m pip install <package>
Example 3: add pip to path
import os
import sys
pipPath = f'{os.path.dirname(sys.executable)}\\Scripts'
os.system(f'setx PATH "%PATH%;{pipPath}"')