If you have conda installed in your system then follow these steps:

  • conda create -n py36 python=3.6
  • activate py36
  • conda config --add channels conda-forge
  • conda install numpy
  • conda install scipy
  • conda install dlib
  • pip install --no-dependencies face_recognition
Answer from Aditya Jetely on Stack Overflow
🌐
Medium
siqlainhanif.medium.com › install-face-recognition-python-library-in-windows-10-e6f5d50fb84d
Install face_recognition python library in windows 10 | by Siqlain Hanif | Medium
January 8, 2023 - I use chocolatey as a package manager and i recommend you to install as well that will make the python installation easy, you can easily set it up from the following URL: https://docs.chocolatey.org/en-us/choco/setup
🌐
PyPI
pypi.org › project › face-recognition
face-recognition · PyPI
You can even use this library with other Python libraries to do real-time face recognition: See this example for the code. ... While Windows isn’t officially supported, helpful users have posted instructions on how to install this library: @masoudr’s Windows 10 installation guide (dlib + face_recognition)
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-face-recognition-in-python-on-windows
How to Install Face Recognition in Python on Windows? - GeeksforGeeks
July 23, 2025 - Face Recognition module can only be installed for Python version 3.7 and 3.8. ... Python 3.7: pip install dlib-19.19.0-cp37-cp37m-win_amd64.whl Python 3.8: pip install dlib-19.19.0-cp38-cp38-win_amd64.whl ...
Top answer
1 of 2
1

Fortunately, I solved the problem. These are the steps to download face_recognition Library:

1- install python:

in the command prompt write python and click Enter, this will open Microsoft store for you, "click download" or "install" to download and install python. "to check if it is downloaded or not type python in the command prompt

2- install pip if you do not have it:

go to: https://pypi.org/project/pip-download/ click download files. Now open the downloaded file, then click right click with the mouse and choose "open in windows terminal". now type the command python get-pip.py. now your pip should be installed, type pip in the terminal to check if it is installed

3-Install Visual Studio tools For C++

go to: https://visualstudio.microsoft.com/ and download the community version of VS. after downloading install it and choose the following options in the installation page:
image1 image2

and choose install

4- installing cmake

Enter the command pip install cmake and wait fo it to be installed.

5- Add cmake to the Path variable

follow the instructions in the following link to know how to add something to your Path variable: https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/

6- Install dlib

write the following command in the command prompt: pip install dlib

7- install face_recognition

write the following command in the command prompt: pip install face_recognition

8- start your project in PyCharm

click File click Sittings in the search type "interpreter" choose "python interpreter" choose "show all" click the "+" sign choose system Interpreter choose the interpreter that its path starts with the "users" directory

That is the solution I used to fix my problem

2 of 2
1

After doing all the steps described, I still get the following error:
Any help at all will be greatly appreciated!

Collecting dlib 
  Using cached dlib-19.24.0.tar.gz (3.2 MB) 
  Preparing metadata (setup.py) ... done 

Installing collected packages: dlib
  DEPRECATION: dlib is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for dlib ... error
  error: subprocess-exited-with-error

  × Running setup.py install for dlib did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      running install
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      running build_ext

      ERROR: CMake must be installed to build dlib

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> dlib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
🌐
YouTube
youtube.com › ittechzone
Install face-recognition lib on windows 10 - YouTube
How to install cMake, Opencv-python library in windows 10 64 bit by using the following commandspip install cmakepip install opencv-python
Published: April 14, 2020
Views: 642
🌐
YouTube
youtube.com › watch
How to Install Face Recognition for Python 3.8 on Windows 10 | Cmake | Dlib - YouTube
PLEASE USE PYTHON 3.8 | How to Install Face Recognition for Python 3.8 on Windows 10 | Cmake | DlibRecognize and manipulate faces from Python or from the com...
Published: June 2, 2020
🌐
GitHub
github.com › YakshThakar › Face-Recognition-API-for-Windows-10
GitHub - YakshThakar/Face-Recognition-API-for-Windows-10 · GitHub
Face Recognition API For Windows user who can Easily Do face detection & Recogition. Goto Command Prompt: Type "pip install face_recognition" after that Go to Environment variable and set path Ex.
Author: YakshThakar
Find elsewhere
🌐
Readthedocs
face-recognition.readthedocs.io › en › latest › installation.html
Installation — Face Recognition 1.4.0 documentation
This is the preferred method to install Face Recognition, as it will always install the most recent stable release. If you don’t have pip installed, this Python installation guide can guide you through the process.
🌐
YouTube
youtube.com › skilled engg
How to Install Face Recognition in Pycharm | On Windows / Mac OS | Install With DLIB & CMAKE [2024] - YouTube
Learn, how to install Face Recognition module in Pycharm IDE with pre-requisites DLIB & CMAKE. It is valid for Mac & Windows.In this end to end video tutoria...
Published: June 25, 2024
Views: 1K
🌐
YouTube
youtube.com › watch
How to Install Face Recognition in Visual Studio Code (Windows & Mac) [2024] - YouTube
In this video, learn how to install Face Recognition in Python Visual Studio Code (VSCode). Covered for Windows & Mac both.In this video, I have explained th...
Published: July 22, 2024
🌐
Medium
siddhardhap.medium.com › how-to-install-dlib-face-recognition-libraries-on-windows10-92fa1a7f5b9
How to install dlib,face-recognition libraries on Windows10 | by Siddhardha Pepeti | Medium
June 6, 2021 - 9)Now change the directory as shown in below image and run the following line ‘ python setup.py install’. Before running this code its important to have Visual Studio and 64 bit python already installed in our system to avoid compatibility issues. Also to avoid installation issues its better to install CMake package before running the 2nd line of code in below image. ... 10)So what I am saying is first change directory to face_recognition as it was in first line of above image and then install CMake using pip and then run the last line present in above image.
🌐
GitHub
github.com › ageitgey › face_recognition › issues › 175
Windows Installation Guide · Issue #175 · ageitgey/face_recognition
September 14, 2017 - (I've included the compiling procedure of Boost in this tutorial) Installation: Easy installation: Just install dlib and face_recognition (not always on the newest version): pip install dlib and then pip install face_recognition.
Author: ageitgey
🌐
Python Programming
pythonprogramming.net › facial-recognition-python
Overview of the Face Recognition package
INtsalling face_recognition_models: ... next to it: Run installer and once you'll see components to install choose C++ Build Tools, list on the right-hand side of the window will appear - scroll it down and choose both versions of build tools, now click Install:...
🌐
GitHub
github.com › ageitgey › face_recognition › issues › 1547
Windows installation · Issue #1547 · ageitgey/face_recognition
January 7, 2024 - pip install git+https://github.com/ageitgey/face_recognition_models · if I put pip show face_recognition it show the information as below · Name: face-recognition Version: 1.3.0 Summary: Recognize faces from Python or from the command line ...
Author: ageitgey
🌐
GitHub
gist.github.com › codeslime › e834af1ab6ca24a4886f9b271bf8b308
How to install face_recognition on windows · GitHub
Run path\to\venv\python.exe -m pip install face_recognition to install face_recognition. Run pip install dlib and wait for this to run - it took ten minutes on my intel i7 core, and made the fan go crazy, so be prepared to wait · If it completes ...
🌐
GitHub
github.com › ageitgey › face_recognition › issues › 1342
An easy way to try face_recognition under windows 10.(in the Anaconda3) · Issue #1342 · ageitgey/face_recognition
July 11, 2021 - You can choose to try the pip ...p36-cp36m-win_amd64.whl"(Don't forget it's in the new environment) ③ Use "pip install face_recognition" to install it....
Author: ageitgey