ModuleNotFoundError: 在 Visual Studio Code 中找不到模块 'cvzone'

huangapple go评论81阅读模式
英文:

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
ModuleNotFoundError: 在 Visual Studio Code 中找不到模块 'cvzone' and change it to the one that has a global next to it.ModuleNotFoundError: 在 Visual Studio Code 中找不到模块 'cvzone' 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.

huangapple
  • 本文由 发表于 2023年3月7日 21:36:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75662682.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定