Ошибка Python: неудачное строительное колесо для dlibPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Ошибка Python: неудачное строительное колесо для dlib

Сообщение Anonymous »

Когда я пытаюсь установить PIP, у меня возникла ошибка, у меня есть решение, но никто не работал, я пытался переустановить Python, он все еще не работает, я пытался установить cmake Это тоже не работает.

Код: Выделить всё

PS C:\WINDOWS\system32> py -m pip install dlib
Collecting dlib
Using cached dlib-20.0.0.tar.gz (3.3 MB)
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
╰─> [41 lines of output]
running bdist_wheel
running build
running build_ext

================================================================================
================================================================================
================================================================================

CMake is not installed on your system!

Or it is possible some broken copy of cmake is installed on your system.
It is unfortunately very common for python package managers to include
broken copies of cmake.  So if the error above this refers to some file
path to a cmake file inside a python or anaconda or miniconda path then you
should delete that broken copy of cmake from your computer.

Instead, please get an official copy of cmake from one of these known good
sources of an official cmake:
- cmake.org (this is how windows users should get cmake)
- apt install cmake (for Ubuntu or Debian based systems)
- yum install cmake (for Redhat or CenOS based systems)

On a linux machine you can run `which cmake` to see what cmake you are
actually using.  If it tells you it's some cmake from any kind of python
packager delete it and install an official cmake.

More generally, cmake is not installed if when you open a terminal window
and type
cmake --version
you get an error.  So you can use that as a very basic test to see if you
have cmake installed.  That is, if cmake --version doesn't run from the
same terminal window from which you are reading this error message, then
you have not installed cmake.  Windows users should take note that they
need to tell the cmake installer to add cmake to their PATH.  Since you
can't run commands that are not in your PATH.  This is how the PATH works
on Linux as well, but failing to add cmake to the PATH is a particularly
common problem on windows and rarely a problem on Linux.

================================================================================
================================================================================
================================================================================
[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)
Затем я попытался установить cmake из PowerShell.PS C:\WINDOWS\system32> py -m pip install cmake
Requirement already satisfied: cmake in c:\users\vince\appdata\local\python\pythoncore-3.14-64\lib\site-packages (4.0.3)
PS C:\WINDOWS\system32>
< /code>
может кто -нибудь мне помочь? Я использую Windows 11, Python 3.14.0b3 и Pip (Python 3.)

Подробнее здесь: https://stackoverflow.com/questions/796 ... l-for-dlib
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»