Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13921

Why do I get a "ModuleNotFoundError" in VS Code despite the fact that I already installed the module?

$
0
0

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: ModuleNotFoundErrorNo 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.


Viewing all articles
Browse latest Browse all 13921

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>