如何在python中安装dlib期间求解设置。

发布于 2025-02-09 14:51:26 字数 923 浏览 2 评论 0原文

我该如何解决此错误,我尝试了许多方法来安装CMAKE,但是DLIB每次都会安装错误

C ++和Visiual Studio也安装了

C:\Users\Admin>pip install dlib

警告:重试(重试(总计= 4,连接= none,read = none,redirect = none,status = none))连接'ReadTimeTimeOuterRor(“ htttpsconnectionpool)(htttpsConnectionpool(host ='pypi.orgg'host ='pypi.orgg'') ,端口= 443):读取时间。 收集Dlib 使用缓存的DLIB-199.24.0.tar.gz(3.2 MB) 准备元数据(setup.py)...完成 使用传统的“设置。 安装收集的软件包:DLIB 运行setup.py安装DLIB ...错误 错误:dlib的子过程脱落

×运行设置。PY安装未成功运行。 │退出代码:1 ╰ - > [8行输出] 运行安装 运行构建 运行build_py 软件包init文件'工具\ python \ dlib_ init _。找不到py'找不到(或未常规文件) 运行build_ext

  ERROR: CMake must be installed to build dlib

  [end of output]

注意:此错误源自子过程,并且可能不是PIP的问题。 旧版安装式漏斗

错误:试图安装软件包时, ×遇到错误。 ╰ - > DLIB

注意:这是上面提到的软件包的问题,​​而不是PIP。 提示:有关故障的输出,请参见上文。

c:\ users \ admin>安装轮 “安装”不被识别为内部或外部命令, 可操作的程序或批处理文件。

How could i solve this error i tried many ways to instal cmake installed succesfully but the dlib getting error everytime to install

c++ and visiual studio also installed

C:\Users\Admin>pip install dlib

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/dlib/
Collecting dlib
Using cached dlib-19.24.0.tar.gz (3.2 MB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib
Running setup.py install for dlib ... error
error: subprocess-exited-with-error

× Running setup.py install for dlib did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running install
running build
running build_py
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
running build_ext

  ERROR: CMake must be installed to build dlib

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> dlib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

C:\Users\Admin>install wheel
'install' is not recognized as an internal or external command,
operable program or batch file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞美少年 2025-02-16 14:51:26

有时,我们需要管理Windows路径环境的CMAKE。

为了检查是否已经添加了路径,您可以转到此PC>可以转到Windows上的环境变量;属性>预先系统设置。然后,转到标签高级,然后单击环境变量。

如果没有CMAKE路径,然后单击“编辑”。您必须做一个新的。

有关更详细的答案,请参阅:在Windows中安装Cmake

谢谢。

Sometimes we need to manage the Windows PATH environment for CMake.

For checking whether the PATH has already been added or not, you can go to Environment Variables on Windows by going to This PC > Properties > Advance system settings. Then, go to Tab Advanced and click on Environment Variables.

And then click Edit, if there is no CMake path. You must make a new one.

For a more detailed answer refer: Installing Cmake in Windows

Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文