Watchdog library isn't identified

661 Views Asked by At

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

Watchmedo without python environment

1

There are 1 best solutions below

1
On

You have installed the watchdog in the global environment. Please check which python environment you have selected when you execute watchmedo --help. You can open the cmd out of the VSCode to execute watchmedo --help.