12.4. Module pip
12.4.1. Searching
pip search ...
12.4.2. Installing
Alt+Enter
on not existingimport
-> Install Packagepip install ...
requirements.txt
pip install -r requirements.txt
12.4.3. List requirements
$ pip freeze
12.4.4. Assignments
12.4.4.1. Installing from requirements.txt
- About:
Name: Installing from requirements.txt
Difficulty: easy
Lines: 1
Minutes: 5
- License:
Copyright 2025, Matt Harasymczuk <matt@python3.info>
This code can be used only for learning by humans (self-education)
This code cannot be used for teaching others (trainings, bootcamps, etc.)
This code cannot be used for teaching LLMs and AI algorithms
This code cannot be used in commercial or proprietary products
This code cannot be distributed in any form
This code cannot be changed in any form outside of training course
This code cannot have its license changed
If you use this code in your product, you must open-source it under GPLv2
Exception can be granted only by the author (Matt Harasymczuk)
- English:
Create
requirements.txt
fileAdd line
mypy
Let your IDE install package automatically (click in yellow banner)
Run
mypy
on last edited Python scriptRun doctests - all must succeed
- Polish:
Stwórz plik
requirements.txt
Dopisz linię
mypy
Niech Twoje IDE zainstaluje package automatycznie (kliknięcie w żółty banner)
Uruchom
mypy
na ostatnio edytowanym skrypcie PythonUruchom doctesty - wszystkie muszą się powieść