ModuleNotFounderror: no module named 'watchdog' Reasons and Solutions

After entering pip install watchdog in the command line interface, the installation is successful


But after entering python, I have been unable to import watchdog


But in the E:\Python36\Lib\site-packages installation path, it is clearly and watchdog, so I can't figure it out.

I have searched for a lot of methods, but have not solved it. Finally, according to this blogger's method https://blog.csdn.net/niutianzhuang/article/details/79185756. found a solution

It turned out to be in Anaconda, there is no watchdog module in the path E:\Anaconda3\Lib\site-packages, copy the two watchdog modules in E:\Python36\Lib\site-packages to E:\Anaconda3\Lib\site-packages , the perfect solution!



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324839752&siteId=291194637