13.4. Module pip

13.4.1. Searching

13.4.2. Installing

  • Alt+Enter on not existing import -> Install Package

  • pip install ...

  • requirements.txt

  • pip install -r requirements.txt

13.4.3. List requirements

$ pip freeze

13.4.4. Assignments

13.4.4.1. Installing from requirements.txt

  • Assignment: Installing from requirements.txt

  • Complexity: easy

  • Lines of code: 1 line

  • Time: 5 min

English:
  1. Create requirements.txt file

  2. Add line mypy

  3. Let your IDE install package automatically (click in yellow banner)

  4. Run mypy on last edited Python script

  5. Run doctests - all must succeed

Polish:
  1. Stwórz plik requirements.txt

  2. Dopisz linię mypy

  3. Niech Twoje IDE zainstaluje package automatycznie (kliknięcie w żółty banner)

  4. Uruchom mypy na ostatnio edytowanym skrypcie Python

  5. Uruchom doctesty - wszystkie muszą się powieść