1import os
2import sys
3pipPath = f'{os.path.dirname(sys.executable)}\\Scripts'
4os.system(f'setx PATH "%PATH%;{pipPath}"')
1Did you add python to PATH when you downloaded it?
2If not, redownload it and make sure you tick the box that says 'add Python to PATH'.
1All possible working solution added [Solved] ‘pip’ is not recognized as an internal or external command