[Python] Getting ModuleNotFoundError even after a successful pip install

Discussão em 'Python' iniciado por Stack, Agosto 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install the SimPy module so that I can use it in IDLE. However, everytime I try to import in IDLE, I got an error. I already tried reinstalling Python and Pip and tried to modify the location of the apps. SimPy can be found in the directory of Python 2.7. I'm using python 3.6.1.

    After I correctly installed simpy in the terminal:

    pip install simpy
    Requirement already satisfied: simpy in /Library/Python/2.7/site-packages


    When I put into IDLE:

    Import Simpy


    I got the error:

    Traceback (most recent call last):
    File "<pyshell#3>", line 1, in <module>
    import simpy
    ModuleNotFoundError: No module named 'simpy'


    How can I solve this?

    Continue reading...

Compartilhe esta Página