pip install options code example

Example 1: pip install from requirements.txt

$ pip install -r requirements.txt

Example 2: pip install

python get-pip.py

Example 3: pip install --upgrade

# That line of shell code updates library
pip install --upgrade <library_name>

Example 4: python -m pip install

# Use Chrome in selenium
# Run cmd type: python -m pip install webdriver-manager

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
browser = webdriver.Chrome(ChromeDriverManager().install())
browser.get('https://www.legifrance.gouv.fr')
searchElem = browser.find_element_by_css_selector('#query')
searchElem.send_keys('jurisprudence')
searchElem.submit()
browser.back()