dlib 已安装但无法导入(与代码)
我已经使用传统的 pip 命令在我的计算机上成功安装了 python 3.10.4 的 dlib 库。 但现在安装后,我尝试导入相同的内容,但它抛出错误。 请帮我解决同样的问题。在此处输入图像说明
I have installed dlib library successfully for python 3.10.4 on my computer using the traditional pip command.
But after installing now I am trying to import the same and it is throwing error.
Please help me out on the same.enter image description here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决我问题的解决方案是....
(在我的情况下,VS代码使用了Python 3.9,我在3.10上安装了Dlib ....然后,我将解释器更改为3.10,然后对我有用)
The solution for my problem was....
(in my case vs code was using python 3.9 and I have installed dlib on 3.10.... then I changed the interpreter to 3.10 and then it worked for me)
就我而言,通过正确设置 Python 解释器的 PATH 解决了问题。如果您想检查或尝试一下,请检查下面的操作方法。
如果您在 Windows 上运行 VSCode,请转到:
插入您的 Python 解释器路径。就我而言,它是“C:\Users\userName\AppData\Local\Programs\Python\Python310”,检查你的。
希望有帮助。
In my case, the problem has been solved by setting properly the PATH for the Python Interpreter. If you want to check or give it a try to this, check bellow how you can do that.
If you run VSCode on Windows go to:
Insert your Python Interpreter Path. In my case it is "C:\Users\userName\AppData\Local\Programs\Python\Python310", check yours.
Hope that helps.