[Bug]: the prompt information of the pip install dlib command is disordered When the system does not have python3-dev,
What Operating System(s) are you seeing this problem on?
Linux (x86-64)
dlib version
20.0.0
Python version
3.10
Compiler
11.4.0
Expected Behavior
No response
Current Behavior
Building wheel for dlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [137 lines of output] running bdist_wheel running build running build_ext Building extension for Python 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0] Invoking CMake setup: 'cmake /tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/build/lib.linux-x86_64-cpython-310 -DPYTHON_EXECUTABLE=/usr/bin/python -DDLIB_USE_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- pybind11 v2.12.0 -- Found PythonInterp: /usr/bin/python (found suitable version "3.10.12", minimum required is "3.6") -- Found PythonLibs: python3.10 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Using CMake version: 3.22.1 -- Compiling dlib version: 20.0.0 -- SSE4 instructions can be executed by the host processor. -- AVX instructions can be executed by the host processor. -- Enabling AVX instructions -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) ***************************************************************************** *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND *** *** Make sure libx11-dev is installed if you want GUI support. *** *** On Ubuntu run: sudo apt-get install libx11-dev *** ***************************************************************************** -- Searching for JPEG XL -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- PkgConfig could not be found, JPEG XL support won't be available -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Looking for cblas_ddot -- Looking for cblas_ddot - not found -- 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 ***************************************************************************** *** No BLAS library found so using dlib's built in BLAS. However, if you *** *** install an optimized BLAS such as OpenBLAS or the Intel MKL your code *** *** will run faster. On Ubuntu you can install OpenBLAS by executing: *** *** sudo apt-get install libopenblas-dev liblapack-dev *** *** Or you can easily install OpenBLAS from source by downloading the *** *** source tar file from http://www.openblas.net, extracting it, and *** *** running: *** *** make; sudo make install *** ***************************************************************************** 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") -- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA. -- DID NOT FIND CUDA -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- Configuring done CMake Error in CMakeLists.txt: Imported target "pybind11::module" includes non-existent path
"/usr/include/python3.10"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
return _build_backend().build_wheel(
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 435, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 423, in _build
return self._build_with_temp_dir(
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 243, in <module>
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/command/bdist_wheel.py", line 370, in run
self.run_command("build")
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "<string>", line 168, in run
File "<string>", line 206, in build_extension
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/build/lib.linux-x86_64-cpython-310', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DDLIB_USE_FFMPEG=OFF', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)
Steps to Reproduce
-
Install python3.10 and pip on ubuntu22.04. Do not install python3-dev
-
Execute the command "pip install dlib"
Anything else?
According to the error prompt, the problem cannot be solved correctly. It would be best to prompt that python3-dev is not installed correctly
PRs are welcome :)
On Fri, Jun 6, 2025 at 4:48 AM LegendaryM @.***> wrote:
LegendaryM created an issue (davisking/dlib#3085) https://github.com/davisking/dlib/issues/3085 What Operating System(s) are you seeing this problem on?
Linux (x86-64) dlib version
20.0.0 Python version
3.10 Compiler
11.4.0 Expected Behavior
No response Current Behavior
Building wheel for dlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [137 lines of output] running bdist_wheel running build running build_ext Building extension for Python 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0] Invoking CMake setup: 'cmake /tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/build/lib.linux-x86_64-cpython-310 -DPYTHON_EXECUTABLE=/usr/bin/python -DDLIB_USE_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- pybind11 v2.12.0 -- Found PythonInterp: /usr/bin/python (found suitable version "3.10.12", minimum required is "3.6") -- Found PythonLibs: python3.10 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Using CMake version: 3.22.1 -- Compiling dlib version: 20.0.0 -- SSE4 instructions can be executed by the host processor. -- AVX instructions can be executed by the host processor. -- Enabling AVX instructions -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
*** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND
*** Make sure libx11-dev is installed if you want GUI support. *** *** On Ubuntu run: sudo apt-get install libx11-dev ***
-- Searching for JPEG XL -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- PkgConfig could not be found, JPEG XL support won't be available -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Looking for cblas_ddot -- Looking for cblas_ddot - not found -- 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
*** No BLAS library found so using dlib's built in BLAS. However, if you
*** install an optimized BLAS such as OpenBLAS or the Intel MKL your code
*** will run faster. On Ubuntu you can install OpenBLAS by executing: *** *** sudo apt-get install libopenblas-dev liblapack-dev *** *** Or you can easily install OpenBLAS from source by downloading the *** *** source tar file from http://www.openblas.net, extracting it, and *** *** running: *** *** make; sudo make install ***
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") -- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA. -- DID NOT FIND CUDA -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- Configuring done CMake Error in CMakeLists.txt: Imported target "pybind11::module" includes non-existent path
"/usr/include/python3.10" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide.-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main() File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel return _build_backend().build_wheel( File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 435, in build_wheel return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)]) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 423, in _build return self._build_with_temp_dir( File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir self.run_setup() File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File " ", line 243, in File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/init.py", line 115, in setup return distutils.core.setup(**attrs) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/command/bdist_wheel.py", line 370, in run self.run_command("build") File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/tmp/pip-build-env-t4ayq54x/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File " ", line 168, in run File " ", line 206, in build_extension File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-op2b_2v5/dlib_6bdac47782db4162bad559fb28432364/build/lib.linux-x86_64-cpython-310', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DDLIB_USE_FFMPEG=OFF', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib) Steps to Reproduce
Install python3.10 and pip on ubuntu22.04. Do not install python3-dev 2.
Execute the command "pip install dlib"
Anything else?
No response
— Reply to this email directly, view it on GitHub https://github.com/davisking/dlib/issues/3085, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPYFR4L45OWN34K3EIMKV33CFIW3AVCNFSM6AAAAAB6XQBCE2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGEZDIMJQGMYTGOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Warning: this issue has been inactive for 35 days and will be automatically closed on 2025-07-23 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Warning: this issue has been inactive for 43 days and will be automatically closed on 2025-07-23 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.