Problem: We often see the "ModuleNotFoundError" when we try to run any Python program though the particular module is already installed.
Solution: Now let's come to the solution-
Step 1: Let us take a module Selenium which is already installed in system but the following error is found:
Traceback (most recent call last):
File "C:/Users/Ananya Sarkar/PycharmProjects/abc/a.py", line 2, in <module>
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
Step 2: We should do the following steps to fix the problem:
3. Click on it and click on the option "Install package selenium".
4. Now when we run the program again the error will not come. Thus, for "ModuleNotFoundError" for any package we can solve it by following the above steps.