1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Why do I get a "ModuleNotFoundError" in VS Code despite the fact that I already...

Discussão em 'Python' iniciado por Stack, Setembro 27, 2024 às 21:12.

  1. Stack

    Stack Membro Participativo

    I'm trying to debug some python code using VS Code. I'm getting the following error about a module that I am sure is already installed.

    Exception has occurred: ModuleNotFoundError
    No module named 'SimpleITK'
    File "C:\Users\Mido\Desktop\ProstateX-project\src\01-preprocessing\03_resample_nifti.py", line 8, in <module>
    import SimpleITK as sitk


    I installed the module using

    sudo pip install SimpleITK


    I know that it was installed because I was getting a similar error when I ran the code through the command line, and it was fixed by doing the above. I don't understand why VS code does not recognize that it's already installed.

    Continue reading...

Compartilhe esta Página