# Pythonslicer.exe interpreter , imports can t be resolved

**URL:** <https://discourse.slicer.org/t/pythonslicer-exe-interpreter-imports-can-t-be-resolved/44914>\
**Category:** Development\
**Tags:** python\
**Created:** [October 29, 2025, 5:13pm UTC](https://discourse.slicer.org/t/pythonslicer-exe-interpreter-imports-can-t-be-resolved/44914 "2025-10-29T17:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThizizBachir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thizizbachir/32/81361_2.png) [@ThizizBachir](https://discourse.slicer.org/u/ThizizBachir)\
**Post date:** [October 29, 2025, 5:13pm UTC](https://discourse.slicer.org/t/pythonslicer-exe-interpreter-imports-can-t-be-resolved/44914/1 "2025-10-29T17:13:58Z")

</div>

Operating system: windows 11  
Slicer version:5.8.1  
Expected behavior: when using pythonslicer.exe as an interpreter in vs code, it should be aware about the location of the imports that the interpreter use as slicer , vtk …  
Actual behavior: i got “Import “slicer” could not be resolved” then ithe IDE could not autocomple the words for my python scripted module

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/f/1f811ce0862effce8eee2b6333164bc7cddbb4ef.png)
