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:
- Created 2 years ago
- Comments:10
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
this whl package just for [Python version: 3.9 64-bit]
run
pip debug --verbose
Only matching versions will install whl correctly