ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
53.18k stars 13.47k forks source link

Cannot install on Windows 11 from setup.py #1401

Open Oddy123123 opened 2 years ago

Oddy123123 commented 2 years ago

Description

I'm trying to install face_recognition using setup.py file, but I'm getting an error during installation.

What I Did

real-shut-down-exe commented 2 years ago

İf the dlip library is not installed, install VMware Workstation (or other Virtualization) and install Ubuntu than try again install "Face Recognition".

Follow this order to load it.

or look:

Windows Installation Tutorial #175

If not work send the error message !!

Billyas commented 2 years ago

Follow this order

and then download this whl file dlib-19.23.0-cp39-cp39-win_amd64.whl dlib-19.23.0-cp39-cp39-win_amd64.whl (github)

open the powershell in the file path pip install dlib-19.23.0-cp39-cp39-win_amd64.whl

mplatypus commented 2 years ago

hi, i tried following that, but i got this error:

ERROR: dlib-19.23.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

what might i do to fix said error?

Billyas commented 2 years ago

i think you need this version

mplatypus commented 2 years ago

is there a version for 3.10? or not yet?

Warriorgiroro commented 2 years ago

Follow this order

  • Python version: 3.9 64-bit
  • Operating System: Windows 11
  • Pip Support version: cp39-cp39-win_amd64

and then download this whl file dlib-19.23.0-cp39-cp39-win_amd64.whl dlib-19.23.0-cp39-cp39-win_amd64.whl (github)

open the powershell in the file path pip install dlib-19.23.0-cp39-cp39-win_amd64.whl

This work for me, thanks a lot

LOANPIA commented 2 years ago

I got the same error, I recommend to use dlib 19.18 for sure this source, and pillow 9.2

S-Vaishnavi commented 2 years ago

My python version is 3.10.6 OS is windows 11 This is the error I'm getting:

ERROR: dlib-19.23.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

Can someone please tell me how to solve this issue?

Billyas commented 2 years ago

My python version is 3.10.6 OS is windows 11 This is the error I'm getting:

ERROR: dlib-19.23.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

Can someone please tell me how to solve this issue?

this whl package just for [Python version: 3.9 64-bit]

run pip debug --verbose

image

Only matching versions will install whl correctly

S-Vaishnavi commented 2 years ago

My python version is 3.10.6 OS is windows 11 This is the error I'm getting: ERROR: dlib-19.23.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform. Can someone please tell me how to solve this issue?

this whl package just for [Python version: 3.9 64-bit]

run pip debug --verbose

image

Only matching versions will install whl correctly

My matching version is cp310-cp310-win_amd64

which command shall I give to install it?

I'm getting this error:

ERROR: Could not find a version that satisfies the requirement dlib-19.23.0-cp310-cp310-win_amd64 (from versions: none) ERROR: No matching distribution found for dlib-19.23.0-cp310-cp310-win_amd64

when I tried to use dlib-19.23.0-cp310-cp310-win_amd64

singhaje commented 1 year ago

Please follow the below steps

  1. Download and install latest windows version of Cmake software from 'https://cmake.org/download/'. Ensure the option should be selected to enable it for all users during installation. Once installed, verify the Path variable in Environment variables is updated for Cmake

  2. Download and install Microsoft Visual C++ Redistributable latest supported downloads from 'https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170'

During installation, need to select Cmake compiler (C++ Cmake tools for Windows should be selected)

  1. Add an environment variable 'DISTUTILS_USE_SDK' with value 1 (Refer to https://wiki.python.org/moin/WindowsCompilers)

  2. Download and install the version of Python (python 3.10.5) and ensure it should be present within 'C:\Program Files\' Directory

  3. Install/upgrade the below required python packages in command prompt as an administrator

    • pip
    • ez_setup
    • setuptools
    • wheel
    • dlib
    • face-recognition
    • face-recognition-models
  4. Open the source code in Visual Studio code as an Administrator and open Requirements.txt file. Install each package one by one from it by running the 'pip install packagename' command in terminal.

  5. Once installed, update the version number of packages in requirements.txt file by running 'pip list' command to see all packages installed along with their version number

  6. In Settings.py comment the database setting for mysql and use default setting for SQLite. Once done, run 'python manage.py migrate' command in terminal

moyakevin commented 1 year ago

worked perfect for me