python set pip path 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 system path windows environment
C:\Users\<USER_NAME>\AppData\Local\Programs\Python\Python39\Scripts
CMD LINE:
set PATH=%PATH%;C:\Python34\Scripts