pip is not recognized as an internal or external command windows 10 code example
Example 1: add pip to path
import os
import sys
pipPath = f'{os.path.dirname(sys.executable)}\\Scripts'
os.system(f'setx PATH "%PATH%;{pipPath}"')
Example 2: pip is not a batch command but python is installed
python -m pip install [packagename]