安装dlib出现以下问题
(suanfa) PS D:\file\code> pip install dlib
Collecting dlib
Downloading dlib-19.24.2.tar.gz (11.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.8/11.8 MB 3.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
running bdist_wheel
running build
running build_ext
<string>:125: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Building extension for Python 3.9.18 (main, Sep 11 2023, 14:09:26) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\13301\AppData\Local\Temp\pip-install-0krv98w2\dlib_d734e3d0865e402592f3db3e3fb65f7c\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\13301\AppData\Local\Temp\pip-install-0krv98w2\dl
ib_d734e3d0865e402592f3db3e3fb65f7c\build\lib.win-amd64-cpython-39 -DPYTHON_EXECUTABLE=E:\Anaconda\envs\suanfa\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\13301\AppData\Local\Temp\pip-install-0krv98w2\dlib_d734e3d0865e402592f3db3e3fb65f7c\build\lib.win-amd64-cpython-39 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like