Davis King has provided two ways to add the latest python dlib (19.17.0) to any python environment in Windows 10 for me. Just a quick update on what has worked for me (two years later). you can proceed to install face recognition.py which suite for python 3.6. then the dlib will be installed successfully.Īfter that, type python and enter, then type import dlib to check dlib is installed perfectly. Then open command prompt and do the same as step 2 which is, write this command "python -m pip install" after this command space first then paste the link copied. Then go to this link, and right-click on filename "dlib-19.8.1-cp36-cp36m-win_amd64.whl" then copy link address. After installing successful go to the next step. Then go to your pc/laptop, open command prompt and write this command "python -m pip install" after this command space first then paste the link copied. Go to and right-click on filename wheel-0.33.6-py2.p圓-none-any.whl (21.6 kB) and copy link address. Install NumPy, scipy, matplotlib and pandas in your pc/laptop with this command in command prompt:. Or you can use the approach mentioned below:Īfter spending a lot of time, this comment gave me the right result.ĭownload Python 3.6.8 and install, make sure you add it to PATH. If you are using Anaconda Prompt (recommended), conda install -c conda-forge dlib Note: To install Dlib for Python 2.x use python instead of python3 you can check your python version via python -V Run the installation: python setup.py install.Note: You may need to open the PowerShell as admin before proceeding to step 6 Note: You can install it for both Python 2 and Python 3, if you have set different variables for different binaries i.e: python2 -V, python3 -V This is my output: Python 3.7.2 so I'm installing it for Python3.x and not for Python2.x Restart The Cmd or PowerShell window for changes to take effect.ĭownload the Dlib source(.tar.gz) from the Python Package Index : extract it and enter into the folder.Ĭheck the Python version: python -V. Note: The path will be set temporarily, to make the change permanent you have to set it in the “Advanced system settings” → “Environment Variables” tab. Note: The path of the executable could be different from C:\Program Files\CMake\bin, just set the PATH accordingly. Set PATH="%PATH% C:\Program Files\CMake\bin" Install Dlib from source (If the solution above doesn't work) Windowsĭownload the CMake installer and install it: Īdd CMake executable path to the Enviroment Variables: Note: if this message occurs you have to build dlib from source:ĭlib-19.7.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform You can test it, downloading an example from the site, for example SVM_Binary_Classifier.py and running it on your machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |