Search code examples
pythonnumpymodulenotfounderror

ModuleNotFoundError: No module named 'numpy' But numpy module already installed


Error: enter image description here I have already installed numpy module(pip show numpy):

enter image description here this how it shows when i try to install numpy again enter image description here

I tried to import numpy module which is already installed but it throws ModuleNotFoundError


Solution

  • if you are using vs code you need to select the Python interpreter explicitly:

    1. press ctrl+shift+p to open the editor command enter image description here
    2. then Search Python: Select Interpreter
    3. then you can choose the appropriate Python interpreter enter image description here