Module not found error 'dvc'

Hi , I have just upgraded dvc to 3.1.0 and the corresponding python version 3.11 got installed.My already installed version was 3.10.9. Now I am not able initialise dvc with module not found error.How can i sort this migration issue

How did you install dvc? What was the package manager used?