title: VS/Pylance warning: import "module" could not be resolved
body: <p>Hi I am getting the following warning (A squiggly line underneath imports), <code>import &quot;numpy&quot; could not be resolved Pylance(reportMissingModuleSource)</code>. There is no issues with executing the code - works fine, just the warning (squiggly line).</p>
  <p>In the following github page, it states to change Settings.JSON with following line <code>&quot;python.analysis.extraPaths&quot;: [&quot;./sources&quot;]</code>.</p>
  <ul>
  <li><a href="https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#unresolved-import-warnings" rel="noreferrer">https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#unresolved-import-warnings</a></li>
  </ul>
  <p>However this didn't work. I also tried adding the path to the current directory followed by &quot;sources&quot; as show in the image. But it didnt work either.</p>
  <p>I am opening vs code from this entry point <code>/home/imantha/workspace/python</code> using <code>bash</code> with <code>code .</code> command.</p>
  <p>Could anyone know how I add the correct path.</p>
  <p><a href="https://i.stack.imgur.com/Bol77.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bol77.png" alt="enter image description here" /></a></p>