一、报错信息
在安装dlib的时候,使用pip进行安装、
pip install dlib
二、解决方式
1、检查自己是否已经安装了cmake
首先要检测自己本机是否已经安装了cmake,因为安装dlib的时候需要用cmake进行编译,所以确保你已安装
PS:我是已经安装了cmake,但依然还会报上面的错误
2、用其他方式安装
我以为是自己本地Temp下的缓存没有删除,结果删除之后依然没有任何的效果,最后的解决方式是更改安装工具,用conda进行安装
conda install dlib
注意:
我不知道为什么自己用pip安装会失败,可能是有之前的pip安装dlib的残留文件没有删除,只是我不知道在哪里。还有可能是因为我的pip下载到的镜像源是国内的清华镜像源,当然这些都是我的猜测可能性。
三、安装face_recognition仍然会报错
当你去安装face_recognition的时候,仍然会报错dlib的错误,因为face_recognition是基于dlib的一个库,所以必须要安装dlib。而face_recognition在只能通过pip安装,pip安装的时候自动检测dlib安装,而通过conda暗转的dlib进行检测不到,然后又会默认安装dlib,然后就又失败,所以只有再用pip安装dlib啦。
这里安装时通过下载dlib的whl库包,然后再pip进行安装dlib
dlib的whl库包下载地址:http://pypi.fcio.net/simple/dlib/
pip install dlib-19.8.1-cp36-cp36m-win_amd64.whl
之后在安装face_recognition就可以正确安装啦
pip install face_recognition
4 2021-12-17 windows10上安装dlib报错:ERROR: Failed building wheel for dlib
4.1 解决方式一:直接下载编译好的dlib的whl安装包
1、先说明直接使用编译好的whl安装dlib的局限性
只支持特定的python版本
安装的dlib版本也都比较老
如果你的python版本是py2.7、py3.4、py3.5和py3.6建议你可以直接下载编译好的whl库包试一下
dlib的whl库包下载:https://pypi.org/simple/dlib/
或者(参考)从如下网址下载也可以:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
2、最后的解决方式,就是下载dlib的whl安装保,我下载的是3.6的dlib==19.8.1,但是版本都比较老,但是安装后可以正常使用!
pip install dlib_xxx.whl
4.2 解决方式二:下载安装Visual Studio
4.2.1 尝试解决windows上使用pip安装dlib报错
1、使用pip install dlib报错:
ERROR: Failed building wheel for dlib
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
2、尝试更换cmake版本
,更换完之后依旧报错
又报错: 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 Visual Studio for C# development. You need to install Visual Studio for C++.
3、去官网查看关于windows上安装dlib报错问题(isuess1974、issues2371)
4.2.2 通过安装Visual Studio 解决在windows上通过pip安装dlib报错
参考:https://www.cnblogs.com/gaylong9/p/15128534.html
1、然后乖乖的去下载一个Visual Studio Community
可以看到需要的空间特别大,就一个使用C++的桌面开发
就有9个多G
,里面有Cmake等编译工具和C++开发的依赖库包等!
2、再次使用pip安装dlib(注意不要卸载之前安装的cmake:pip install cmake)
然后又报错了:C:\software_install\Anaconda_install\Library\include\gif_lib.h(286,61): error C2734: “GifAsciiTable8x8”: 如果不是外部的,则必须初始化常量对象 (编译源文件 C:\Users\shl\AppData\Local\Temp\pip-install-yij1e_t1\dlib_62149a6f396c42b2a88803877762f1d7\tools\python\src\numpy_returns.cpp) [C:\Users\shl\AppData\Local\Temp\pip-install-yij1e_t1\dlib_62149a6f396c42b2a88803877762f1d7\build\temp.win-amd64-3.6\Release\_dlib_pybind11.vcxproj]
真的是无语子!我还以为是python版本的问题,结果再python3.8和python3.6环境下都遇到了这个错误!
解决方式参考:
https://www.cnblogs.com/jnpw/p/14855634.html
https://www.cnblogs.com/gaylong9/p/15128534.html
1、下载dlib源码
git clone https://github.com.cnpmjs.org/davisking/dlib.git
2、切换到你要安装dlib版本分支
查看当前分支:git branch
查看所有的tag版本:git tag
3、切换到指定的tag版本
git checkout v19.19
编译成功,验证如下:
(base) PS E:\python_packages\dlib> python
Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dlib
>>> dir(dlib)
['DLIB_USE_BLAS', 'DLIB_USE_CUDA', 'DLIB_USE_LAPACK', 'KBD_MOD_ALT', 'KBD_MOD_CAPS_LOCK', 'KBD_MOD_CONTROL', 'KBD_MOD_META', 'KBD_MOD_NONE', 'KBD_MOD_NUM_LOCK', 'KBD_MOD_SCROLL_LOCK', 'KBD_MOD_SHIFT', 'KEY_ALT', 'KEY_BACKSPACE', 'KEY_CAPS_LOCK', 'KEY_CTRL', 'KEY_DELETE', 'KEY_DOWN', 'KEY_END', 'KEY_ESC', 'KEY_F1', 'KEY_F10', 'KEY_F11', 'KEY_F12', 'KEY_F2', 'KEY_F3', 'KEY_F4', 'KEY_F5', 'KEY_F6', 'KEY_F7', 'KEY_F8', 'KEY_F9', 'KEY_HOME', 'KEY_INSERT', 'KEY_LEFT', 'KEY_PAGE_DOWN', 'KEY_PAGE_UP', 'KEY_PAUSE', 'KEY_RIGHT', 'KEY_SCROLL_LOCK', 'KEY_SHIFT', 'KEY_UP', 'USE_AVX_INSTRUCTIONS', 'USE_NEON_INSTRUCTIONS', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__time_compiled__', '__version__', '_binary_test', '_decision_function_histogram_intersection', '_decision_function_linear', '_decision_function_polynomial', '_decision_function_radial_basis', '_decision_function_sigmoid', '_decision_function_sparse_histogram_intersection', '_decision_function_sparse_linear', '_decision_function_sparse_polynomial', '_decision_function_sparse_radial_basis', '_decision_function_sparse_sigmoid', '_linear_kernel', '_normalized_decision_function_radial_basis', '_radial_basis_kernel', '_range_iter', '_ranking_test', '_regression_test', '_row', 'angle_between_lines', 'apply_cca_transform', 'array', 'as_grayscale', 'assignment_cost', 'auto_train_rbf_classifier', 'cca', 'cca_outputs', 'center', 'centered_rect', 'centered_rects', 'chinese_whispers', 'chinese_whispers_clustering', 'chip_details', 'chip_dims', 'cnn_face_detection_model_v1', 'convert_image', 'convert_image_scaled', 'correlation_tracker', 'count_points_between_lines', 'count_points_on_side_of_line', 'count_steps_without_decrease', 'count_steps_without_decrease_robust', 'cross_validate_ranking_trainer', 'cross_validate_sequence_segmenter', 'cross_validate_trainer', 'cross_validate_trainer_threaded', 'cuda', 'distance_to_line', 'dot', 'dpoint', 'dpoints', 'drectangle', 'equalize_histogram', 'extract_image_4points', 'extract_image_chip', 'extract_image_chips', 'face_recognition_model_v1', 'fhog_object_detector', 'find_bright_keypoints', 'find_bright_lines', 'find_candidate_object_locations', 'find_dark_keypoints', 'find_dark_lines', 'find_line_endpoints', 'find_max_global', 'find_min_global', 'find_optimal_rect_filter', 'find_peaks', 'find_projective_transform', 'full_object_detection', 'full_object_detections', 'function_evaluation', 'function_evaluation_request', 'function_spec', 'gaussian_blur', 'get_face_chip', 'get_face_chips', 'get_frontal_face_detector', 'get_histogram', 'get_rect', 'global_function_search', 'grow_rect', 'hit_enter_to_continue', 'hough_transform', 'hysteresis_threshold', 'image_dataset_metadata', 'image_gradients', 'image_window', 'intersect', 'inv', 'jet', 'jitter_image', 'keyboard_mod_keys', 'label_connected_blobs', 'label_connected_blobs_watershed', 'length', 'line', 'load_grayscale_image', 'load_libsvm_formatted_data', 'load_rgb_image', 'make_bounding_box_regression_training_data', 'make_sparse_vector', 'matrix', 'max_cost_assignment', 'max_index_plus_one', 'max_point', 'max_point_interpolated', 'min_barrier_distance', 'mmod_rectangle', 'mmod_rectangles', 'mmod_rectangless', 'no_convex_quadrilateral', 'non_printable_keyboard_keys', 'normalize_image_gradients', 'num_separable_filters', 'pair', 'partition_pixels', 'point', 'point_transform_projective', 'points', 'polygon_area', 'probability_that_sequence_is_increasing', 'pyramid_down', 'randomly_color_image', 'range', 'ranges', 'rangess', 'ranking_pair', 'ranking_pairs', 'rect_filter', 'rectangle', 'rectangles', 'rectangless', 'reduce', 'remove_incoherent_edge_pixels', 'resize_image', 'reverse', 'rgb_pixel', 'rvm_trainer_histogram_intersection', 'rvm_trainer_linear', 'rvm_trainer_radial_basis', 'rvm_trainer_sparse_histogram_intersection', 'rvm_trainer_sparse_linear', 'rvm_trainer_sparse_radial_basis', 'save_face_chip', 'save_face_chips', 'save_image', 'save_libsvm_formatted_data', 'scale_rect', 'segmenter_params', 'segmenter_test', 'segmenter_type', 'set_dnn_prefer_smallest_algorithms', 'shape_predictor', 'shape_predictor_training_options', 'shrink_rect', 'signed_distance_to_line', 'simple_object_detector', 'simple_object_detector_training_options', 'simple_test_results', 'skeleton', 'sobel_edge_detector', 'solve_structural_svm_problem', 'sparse_ranking_pair', 'sparse_ranking_pairs', 'sparse_vector', 'sparse_vectors', 'sparse_vectorss', 'spatially_filter_image', 'spatially_filter_image_separable', 'sub_image', 'suppress_non_maximum_edges', 'svm_c_trainer_histogram_intersection', 'svm_c_trainer_linear', 'svm_c_trainer_radial_basis', 'svm_c_trainer_sparse_histogram_intersection', 'svm_c_trainer_sparse_linear', 'svm_c_trainer_sparse_radial_basis', 'svm_rank_trainer', 'svm_rank_trainer_sparse', 'test_binary_decision_function', 'test_ranking_function', 'test_regression_function', 'test_sequence_segmenter', 'test_shape_predictor', 'test_simple_object_detector', 'threshold_filter_singular_values', 'threshold_image', 'tile_images', 'train_sequence_segmenter', 'train_shape_predictor', 'train_simple_object_detector', 'transform_image', 'translate_rect', 'vector', 'vectors', 'vectorss', 'zero_border_pixels']
>>>
然后编译成功,如下是详细的编译过程
(base) PS E:\python_packages\dlib> python .\setup.py install --no DLIB_GIF_SUPPORT
running install
C:\software_install\Anaconda_install\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
C:\software_install\Anaconda_install\lib\site-packages\setuptools\command\easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
C:\software_install\Anaconda_install\lib\site-packages\pkg_resources\__init__.py:116: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid version and will not be supported in a future release
warnings.warn(
running bdist_egg
running egg_info
creating dlib.egg-info
writing dlib.egg-info\PKG-INFO
writing dependency_links to dlib.egg-info\dependency_links.txt
writing top-level names to dlib.egg-info\top_level.txt
writing manifest file 'dlib.egg-info\SOURCES.txt'
package init file 'dlib\__init__.py' not found (or not a regular file)
reading manifest file 'dlib.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'tools\python\build*'
writing manifest file 'dlib.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake E:\python_packages\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\python_packages\dlib\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=C:\software_install\Anaconda_install\python.exe -DDLIB_GIF_SUPPORT=no -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=E:\python_packages\dlib\build\lib.win-amd64-3.8 -A x64'
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.30.30706.0
-- The CXX compiler identification is MSVC 19.30.30706.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/software_install/Anaconda_install/python.exe (found version "3.8.8")
-- Found PythonLibs: C:/software_install/Anaconda_install/libs/Python38.lib
-- pybind11 v2.2.2
-- Using CMake version: 3.22.1
-- Compiling dlib version: 19.19.0
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Enabling AVX instructions
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- DID NOT FIND CUDA
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: E:/python_packages/dlib/build/temp.win-amd64-3.8/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 17.0.0+c9eb9dd64
版权所有(C) Microsoft Corporation。保留所有权利。
Checking Build System
Building Custom Rule E:/python_packages/dlib/dlib/CMakeLists.txt
base64_kernel_1.cpp
bigint_kernel_1.cpp
bigint_kernel_2.cpp
bit_stream_kernel_1.cpp
E:\python_packages\dlib\dlib\bigint\bigint_kernel_2.h(537,18): warning C4834: 放弃具有 "nodiscard" 属性的函数的返回值 (编译源文件 E:\python_packages\dlib\dlib\bigint\bigint_kernel_2.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_buil
d\dlib.vcxproj]
E:\python_packages\dlib\dlib\bigint\bigint_kernel_2.h(549,17): warning C4834: 放弃具有 "nodiscard" 属性的函数的返回值 (编译源文件 E:\python_packages\dlib\dlib\bigint\bigint_kernel_2.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_buil
d\dlib.vcxproj]
E:\python_packages\dlib\dlib\bigint\bigint_kernel_1.h(512,18): warning C4834: 放弃具有 "nodiscard" 属性的函数的返回值 (编译源文件 E:\python_packages\dlib\dlib\bigint\bigint_kernel_1.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_buil
d\dlib.vcxproj]
entropy_decoder_kernel_1.cpp
E:\python_packages\dlib\dlib\bigint\bigint_kernel_1.h(524,17): warning C4834: 放弃具有 "nodiscard" 属性的函数的返回值 (编译源文件 E:\python_packages\dlib\dlib\bigint\bigint_kernel_1.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_buil
d\dlib.vcxproj]
entropy_decoder_kernel_2.cpp
entropy_encoder_kernel_1.cpp
entropy_encoder_kernel_2.cpp
md5_kernel_1.cpp
tokenizer_kernel_1.cpp
unicode.cpp
image_dataset_metadata.cpp
mnist.cpp
global_function_search.cpp
kalman_filter.cpp
test_for_odr_violations.cpp
auto.cpp
sockets_kernel_1.cpp
bsp.cpp
dir_nav_kernel_1.cpp
dir_nav_kernel_2.cpp
dir_nav_extensions.cpp
linker_kernel_1.cpp
extra_logger_headers.cpp
logger_kernel_1.cpp
logger_config_file.cpp
misc_api_kernel_1.cpp
misc_api_kernel_2.cpp
sockets_extensions.cpp
sockets_kernel_2.cpp
sockstreambuf.cpp
sockstreambuf_unbuffered.cpp
server_kernel.cpp
server_iostream.cpp
server_http.cpp
multithreaded_object_extension.cpp
threaded_object_extension.cpp
threads_kernel_1.cpp
threads_kernel_2.cpp
threads_kernel_shared.cpp
thread_pool_extension.cpp
async.cpp
timer.cpp
stack_trace.cpp
cpu_dlib.cpp
tensor_tools.cpp
fonts.cpp
widgets.cpp
drawable.cpp
canvas_drawing.cpp
style.cpp
base_widgets.cpp
gui_core_kernel_1.cpp
gui_core_kernel_2.cpp
png_loader.cpp
save_png.cpp
jpeg_loader.cpp
save_jpeg.cpp
arm_init.c
filter_neon_intrinsics.c
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
jaricom.c
jcapimin.c
jcapistd.c
jcarith.c
jccoefct.c
jccolor.c
jcdctmgr.c
jchuff.c
jcinit.c
jcmainct.c
jcmarker.c
jcmaster.c
jcomapi.c
jcparam.c
jcprepct.c
jcsample.c
jdapimin.c
jdapistd.c
jdarith.c
jdatadst.c
E:\python_packages\dlib\dlib\external\libjpeg\jdatadst.c(185,34): warning C4267: “=”: 从“size_t”转换到“unsigned long”,可能丢失数据 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jdatasrc.c
jdcoefct.c
jdcolor.c
jddctmgr.c
jdhuff.c
jdinput.c
jdmainct.c
jdmarker.c
jdmaster.c
jdmerge.c
jdpostct.c
jdsample.c
jerror.c
jfdctflt.c
jfdctfst.c
jfdctint.c
E:\python_packages\dlib\dlib\external\libjpeg\jerror.c(193,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details. [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
E:\python_packages\dlib\dlib\external\libjpeg\jerror.c(195,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details. [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jidctflt.c
jidctfst.c
jidctint.c
jmemmgr.c
jmemnobs.c
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(307,47): warning C4267: “+=”: 从“size_t”转换到“long”,可能丢失数据 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(367,46): warning C4267: “+=”: 从“size_t”转换到“long”,可能丢失数据 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jquant1.c
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(977,35): warning C4267: “-=”: 从“size_t”转换到“long”,可能丢失数据 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(991,35): warning C4267: “-=”: 从“size_t”转换到“long”,可能丢失数据 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(1107,19): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help f
or details. [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jquant2.c
E:\python_packages\dlib\dlib\external\libjpeg\jmemmgr.c(1110,11): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help fo
r details. [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jutils.c
dlib.vcxproj -> E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_build\Release\dlib19.19.0_release_64bit_msvc1930.lib
Building Custom Rule E:/python_packages/dlib/tools/python/CMakeLists.txt
dlib.cpp
matrix.cpp
vector.cpp
svm_c_trainer.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\vector.cpp) [E:\python_packages\dlib\build
\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
svm_rank_trainer.cpp
decision_functions.cpp
other.cpp
basic.cpp
cca.cpp
sequence_segmenter.cpp
svm_struct.cpp
image.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\image.cpp) [E:\python_packages\dlib\build\
temp.win-amd64-3.8\Release\dlib_python.vcxproj]
image2.cpp
image3.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\image2.cpp) [E:\python_packages\dlib\build
\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\image3.cpp) [E:\python_packages\dlib\build
\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
image4.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\image4.cpp) [E:\python_packages\dlib\build
\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\..\dlib/image_transforms/assign_image.h(86,45): warning C4018: “>=”: 有符号/无符号不匹配 (编译源文件 E:\python_packages\dlib\tools\python\src\image3.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_pyth
on.vcxproj]
E:\python_packages\dlib\dlib\..\dlib/image_transforms/assign_image.h(160): message : 查看对正在编译的函数 模板 实例化“void dlib::impl_assign_image_scaled<out_image_type,src_image_type>(dlib::image_view<out_image_type> &,const src_image_type &,const do
uble)”的引用 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
with
[
out_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::matrix_op<dlib::op_image_to_mat<dlib::numpy_image<uint32_t>,uint32_t>>
] (编译源文件 E:\python_packages\dlib\tools\python\src\image3.cpp)
E:\python_packages\dlib\dlib\..\dlib/image_transforms/assign_image.h(177): message : 查看对正在编译的函数 模板 实例化“void dlib::impl_assign_image_scaled<dest_image_type,dlib::matrix_op<dlib::op_image_to_mat<src_image_type,T>>>(dest_image_type &,const
dlib::matrix_op<dlib::op_image_to_mat<src_image_type,T>> &,const double)”的引用 [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
with
[
dest_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::numpy_image<uint32_t>,
T=uint32_t
] (编译源文件 E:\python_packages\dlib\tools\python\src\image3.cpp)
E:\python_packages\dlib\tools\python\src\image3.cpp(27): message : 查看对正在编译的函数 模板 实例化“void dlib::assign_image_scaled<dlib::numpy_image<int8_t>,dlib::numpy_image<uint32_t>>(dest_image_type &,const src_image_type &,const double)”的引用 [E:\py
thon_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
with
[
dest_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::numpy_image<uint32_t>
]
E:\python_packages\dlib\tools\python\src\image3.cpp(435): message : 查看对正在编译的函数 模板 实例化“pybind11::array convert_image_scaled<uint32_t>(const dlib::numpy_image<uint32_t> &,const std::string &,const double)”的引用 [E:\python_packages\dlib\buil
d\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\..\dlib/image_transforms/assign_image.h(87,45): warning C4018: “<=”: 有符号/无符号不匹配 (编译源文件 E:\python_packages\dlib\tools\python\src\image3.cpp) [E:\python_packages\dlib\build\temp.win-amd64-3.8\Release\dlib_pyth
on.vcxproj]
rectangles.cpp
object_detection.cpp
shape_predictor.cpp
correlation_tracker.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\object_detection.cpp) [E:\python_packages\
dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\shape_predictor.cpp) [E:\python_packages\d
lib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\correlation_tracker.cpp) [E:\python_packag
es\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
face_recognition.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\face_recognition.cpp) [E:\python_packages\
dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
cnn_face_detector.cpp
global_optimization.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\cnn_face_detector.cpp) [E:\python_packages
\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
image_dataset_metadata.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\image_dataset_metadata.cpp) [E:\python_pac
kages\dlib\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
numpy_returns.cpp
line.cpp
gui.cpp
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\numpy_returns.cpp) [E:\python_packages\dli
b\build\temp.win-amd64-3.8\Release\dlib_python.vcxproj]
E:\python_packages\dlib\dlib\image_transforms/morphological_operations.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 E:\python_packages\dlib\tools\python\src\gui.cpp) [E:\python_packages\dlib\build\te
mp.win-amd64-3.8\Release\dlib_python.vcxproj]
正在创建库 E:/python_packages/dlib/build/temp.win-amd64-3.8/Release/Release/dlib.lib 和对象 E:/python_packages/dlib/build/temp.win-amd64-3.8/Release/Release/dlib.exp
dlib_python.vcxproj -> E:\python_packages\dlib\build\lib.win-amd64-3.8\dlib.cp38-win_amd64.pyd
Building Custom Rule E:/python_packages/dlib/tools/python/CMakeLists.txt
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
copying build\lib.win-amd64-3.8\dlib.cp38-win_amd64.pyd -> build\bdist.win-amd64\egg
creating stub loader for dlib.cp38-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\dlib.py to dlib.cpython-38.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying dlib.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating dist
creating 'dist\dlib-19.19.0-py3.8-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing dlib-19.19.0-py3.8-win-amd64.egg
creating c:\software_install\anaconda_install\lib\site-packages\dlib-19.19.0-py3.8-win-amd64.egg
Extracting dlib-19.19.0-py3.8-win-amd64.egg to c:\software_install\anaconda_install\lib\site-packages
Adding dlib 19.19.0 to easy-install.pth file
Installed c:\software_install\anaconda_install\lib\site-packages\dlib-19.19.0-py3.8-win-amd64.egg
Processing dependencies for dlib==19.19.0
Finished processing dependencies for dlib==19.19.0
(base) PS E:\python_packages\dlib>