'ModulNotFoundError but Requirement already satisfied

When I try running "import pandas as pd" it showns a ModulNotFoundError:No module named 'pandas' But when I try writing pip install pandas in terminal it comes out like Requirement already satisfied.

Really stuck here, what could be the problem?



Solution 1:[1]

If you're using Visual Studio Code, restart it after installing any library with it open. If the error persists, do pip install pandas on both the vs code terminal and cmd.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matei Piele