Answers for "install pip and choose location"

5

install to current directory pip

pip install <package-name> -t .
Posted by: Guest on March-01-2021
9

add pip to path

import os
import sys
pipPath = f'{os.path.dirname(sys.executable)}\\Scripts'
os.system(f'setx PATH "%PATH%;{pipPath}"')
Posted by: Guest on June-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language