while downloading the dlib module, the terminal output returns with an error:
CMake Error in CMakeLists.txt: The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Alright. I was installing dlib
for quite a while. I know what NOT to do now. The only thing you need is this. Follow the steps. That is it. Turns out that dlib
is not supported by the pythons latest version. So you have to install a python wheel
which is easy to install by the command pip install wheel
on your cmd
. Then after downloading the files mentioned [Follow the steps mentioned in the git profile below, you'll be good.]
It gets kind of stressful to install all the things separately. The link below runs a setup to install the dlib
package. It will ask your user permission to run and will be blocked by the windows defender, but press more and click on "Run anyways". Don't forget to test your package installation !
check this link for installation on ubuntu or mac os platform https://www.pyimagesearch.com/2018/01/22/install-dlib-easy-complete-guide/
The another type installation method if you are using dlib for face_recognition models then follow this answer
(with python 3.6 to 3.7.0 working normally).
First create an environment , conda create -n env_name python=version
then activate, conda activate env_name
now install via conda forge channel, conda install -c conda-forge dlib=19.17
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.