Skip to content
Advertisement

Python module not found even though its installed

Does anyone else have this issue? For reference check this screenshot: Error

PIP is also up to date and I already tried reinstalling it but it didn’t work neither. I’m using VS Code. It also worked just fine yesterday but today it didn’t anymore for some reason.

Advertisement

Answer

Your mss package is installed locally, but you are using a virtual environment to run code.

enter image description here

Two solutions:

1. Switch the interpreter to the local interpreter, which is the c:UsersAnwenderAppDataLocal.... in your picture

  • Ctrl+Shift+P to open the command palette, search for and select Python:Select Interpreter

    enter image description here

  • Select the interpreter with the mss package installed

    enter image description here

2. Install the mss package for your virtual environment

  • Select the virtual environment interpreter in the selection panel

    enter image description here

  • Create a new terminal activation environment

    enter image description here

  • Install mss package using command pip install mss

    enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement