question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install on Windows 11 from setup.py

See original GitHub issue
  • face_recognition version: 1.4.0
  • Python version: 3.8.8
  • Operating System: Windows 11

Description

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

What I Did

  • I have Visual Studio 2019 with C++ installed.
  • I installed cmake using pip install cmake and it was successfully installed (version 3.22.1)
  • Finally I downloaded this project as a zip file, extracted it, went to its directory, and ran this command: python setup.py install
  • I’m getting the following error many times:
C:\Users\abdul\anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be ini
tialized if not 'extern' (compiling source file C:\Users\abdul\AppData\Local\Temp\easy_install-0keuxls6\dlib-19.22.1\to
ols\python\src\sequence_segmenter.cpp) [C:\Users\abdul\AppData\Local\Temp\easy_install-0keuxls6\dlib-19.22.1\build\temp
.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

6reactions
Billyascommented, Feb 26, 2022

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

4reactions
Billyascommented, Oct 19, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install Python on Windows 11 - YouTube
... how to install Python on Windows 11 and fix your Python installation when the Python command is ... Your browser can't play...
Read more >
Python not installing on windows 11 - Stack Overflow
I'm not sure which python version / distribution you're trying to install, but I was having issues installing Winpython64-3.7.10.0PyPy.
Read more >
How to Install Python on Windows 11 and Fix Python not ...
To install the latest version of Python on Windows 11, head over to the Python download website and choose Windows Installer (64-bit) under ......
Read more >
Cannot install setup.py because of [WinError 32] => PyCharm ...
Create a project in which you add a simple setup.py script. · Run the setup.py with "python setup.py install" · The console then...
Read more >
How To Install Python on Windows 10 and 11 | Tom's Hardware
Installing Python on Windows 10 and 11 is easy and we show you three ways to install and use the versatile programming language....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found