英文:
ModuleNotFoundError: No module named 'cvzone' in visual studio code
问题
我尝试在VS Code中导入cvzone和cv2库,但无论我做什么都会出现以下错误。
尝试通过cmd和pip以及VS Code(再次使用pip)安装,但没有任何改变。
Python版本3.11.2
pip版本22.3.1
英文:
I was trying to import cvzone and cv2 library in vs code but it gives this error no matter what I do.
Tried to install this through cmd with pip and vs code (again, with pip) but nothing changes
python version 3.11.2
pip version 22.3.1
答案1
得分: 2
尝试更改你的Python解释器。由于你在使用VS Code,你可以使用Ctrl + Shift + P
来执行此操作,然后输入>python: select interpreter
,将其更改为带有"global"标志的解释器。如果这不起作用,请尝试使用所有的解释器。希望这能帮助你。
英文:
Try changing you python interpreter. Since you are using vs code you can do that with ctlr + shift + p, then type >python: select interpreter
and change it to the one that has a global next to it. If this doesn't work try with all the interpreters. Hope this helps.
答案2
得分: 2
好的,这个句子的翻译如下:
原文:Well, it turns out making a virtual environment, installing wheel and only then installing cvzone solves this issue.
翻译:嗯,事实证明,创建一个虚拟环境,安装 wheel,然后再安装 cvzone 可以解决这个问题。
英文:
Well, it turns out making a virtual environment, installing wheel and only then installing cvzone solves this issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论