Skip to content

Commit

Permalink
Merge pull request #9 from z-mahmud22/z-mahmud22-patch-3
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
z-mahmud22 authored Oct 25, 2024
2 parents 76a8ca9 + d0d1d28 commit 45bbfd4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,16 @@ 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
```
## Steps to build Dlib from source:
If you'd like to build it from source, follow these exact steps as per their [docs](https://github.com/davisking/dlib?tab=readme-ov-file#compiling-dlib-python-api):
* Install [Visual Studio 2022](https://visualstudio.microsoft.com/vs/community/) with the option **Desktop Development with C++**
* Create a virtual env with [`venv`](https://docs.python.org/3/library/venv.html) or [anaconda](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
* 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!

0 comments on commit 45bbfd4

Please sign in to comment.