Thank you for your suggestions but I installed it through a different way by using Anaconda with the command Conda install dlib
in the Anaconda Prompt then created an environment for it. After that, I used Anaconda 5.3.0 in VSCode then started coding.