This repository contains the compiled binary (.whl) files for the Dlib library to install on Python versions 3.7, 3.8, 3.9, 3.10, 3.11, and 3.12 on a Windows x64 OS.
解决了windows环境下,python编程实现人脸关键点检测,使用dlib包的问题 import dlib
python -m pip install --upgrade pip
pip install cmake==3.25.2pip install cmake==3.25.2 -i https://pypi.tuna.tsinghua.edu.cn/simple- May 08, 2024: Added compiled binary file (.whl) for Python 3.12!
-
Install Python from Python.org (download the 64-bit installer file)
OR
-
Create a virtual environment via venv or Anaconda i.e.
conda create -n env_name python = 3.8 -
Download the wheel file for your specific Python version
-
Open a terminal and install Dlib via:
python -m pip install dlib-19.22.99-cp37-cp37m-win_amd64.whl
python -m pip install dlib-19.22.99-cp38-cp38-win_amd64.whl
python -m pip install dlib-19.22.99-cp39-cp39-win_amd64.whl
python -m pip install dlib-19.22.99-cp310-cp310-win_amd64.whl
python -m pip install dlib-19.24.1-cp311-cp311-win_amd64.whl
python -m pip install dlib-19.24.99-cp312-cp312-win_amd64.whl
If you'd like to build it from source, follow these exact steps as per their docs:
- Install Visual Studio 2022 with the option Desktop Development with C++
- Create a virtual env with
venvor anaconda - Execute these commands:
git clone https://github.com/davisking/dlib.git
cd dlib
pip install build
python -m build --wheel # Upon successful run, a ".whl" binary will be created under "dlib/dist/"
pip install dist/dlib-<version>.whl # replace <version> with the exact name of the ".whl" file
Cheers!