Skip to content

Commit 33de59f

Browse files
realpython-botrealpython-botclaudemartin-martin
authored
Update face-recognition dependency pins to match the tutorial (#809)
The tutorial "Build Your Own Face Recognition Tool With Python" was refreshed in the CMS and its requirements.txt block now pins current releases. These seven files still carried the 2023-era pins, so anyone downloading the materials built a different environment than the article describes. dlib 19.24.0 -> 20.0.1 numpy 1.24.2 -> 2.5.2 Pillow 9.4.0 -> 12.3.0 setuptools (absent) -> 81.0.0 face-recognition stays at 1.3.0, its latest release (2020-02-20). The setuptools pin is the load-bearing one. face_recognition_models does `from pkg_resources import resource_filename` at import time, and setuptools removed pkg_resources in 82.0.0 -- the 81.0.0 wheel ships 19 files under pkg_resources/, the 82.0.0 wheel ships none. Without the pin, `import face_recognition` aborts with "Please install face_recognition_models". Co-authored-by: realpython-bot <bot@realpython.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Martin Breuss <martin-martin@users.noreply.github.com>
1 parent f4e1dfd commit 33de59f

7 files changed

Lines changed: 28 additions & 21 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dlib==19.24.0
1+
dlib==20.0.1
22
face-recognition==1.3.0
3-
numpy==1.24.2
4-
Pillow==9.4.0
3+
numpy==2.5.2
4+
Pillow==12.3.0
5+
setuptools==81.0.0

0 commit comments

Comments
 (0)