看门狗库未识别
我正在尝试使用看门狗创建一个文件监视程序。但是,我的 VSCode 无法识别该库。
我已经运行了pip install watchdog 在我的 powershell 上,它显示:要求已满足:c:\python310\lib\site-packages (2.1.6) 中的看门狗,当我运行 watchmedo 时--help 检查一下,不被识别。
我该如何解决这个问题?
[编辑] Watchmedo 已安装并且似乎运行正常。 时,我看不到它在哪个 python 环境中
但是,当我运行 watchmedo --help
没有Python环境的Watchmedo
I'm trying to create a file monitoring program using watchdog. However, my VSCode won't identify the library.
Library isn't recognized - image example
I have already ran pip install watchdog on my powershell and it displays: Requirement already satisfied: watchdog in c:\python310\lib\site-packages (2.1.6), and when I run watchmedo --help to check, it's not recognized.
How do I fix this?
[EDIT] Watchmedo is installed and seems to be running properly. However, I can't see in which python environment it is when I run watchmedo --help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已在全局环境中安装了
watchdog
。请检查您在执行watchmedo --help
时选择了哪个Python环境。您可以从 VSCode 中打开 cmd 来执行watchmedo --help
。You have installed the
watchdog
in the global environment. Please check which python environment you have selected when you executewatchmedo --help
. You can open the cmd out of the VSCode to executewatchmedo --help
.