gpt4 book ai didi

python-3.x - 没有名为 'dlib' 的模块

转载 作者:行者123 更新时间:2023-12-03 21:56:16 25 4
gpt4 key购买 nike

我正在使用 Windows 10
python 3.7.4

我有一个导入 dlib 的代码

import dlib

但是当我尝试使用 pip install dlib 安装它时,它会引发错误
ERROR : Command errored out with exit status 1 : 
......


我什至厌倦了安装 cmake
This dlib file并尝试将它们复制粘贴到站点包中并尝试
python setup.py install

它抛出一个错误说
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:


应该怎么做才能解决这个问题??

感谢任何花时间阅读此查询并厌倦解决此问题的人。祝你工作好运:) ..

最佳答案

我终于找到了。。
我们需要为 C++ 安装 Visual Studio 构建工具,大小约为 4.53 GB。
然后通过使用

pip install dlib

它很容易安装。

不管怎么说,还是要谢谢你

关于python-3.x - 没有名为 'dlib' 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61702046/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com