How do I configure Visual Studio Code with Python extension to not complain about inability to import modules?
<p>I am new to VS Code and I installed e.g. PySide for my tutorial project written in Python. I try to:</p>

<pre><code>from PySide.QtGui import QDialog, QApplication, QVBoxLayout, QLineEdit, QTextBrowser
from PySide.QtCore import *
</code></pre>

<p>Although the code runs perfectly well using the imported modules, VS Code complains with:</p>

<pre><code>[pylint] E0401:Unable to import 'PySide.QtGui'
</code></pre>

<p>or</p>

<pre><code>[pylint] E0401:Unable to import 'PySide.QtCore'
</code></pre>

<p>This is very irritating, since I am able to use the modules as expected. I would guess an configuration issue, but do not know how to fix this. </p>

<p>Thank you very much.</p>

<p>See also:</p>

<p><a href="http://i.stack.imgur.com/Iy25I.png" rel="nofollow">Visual representation of VS Code complaining</a></p>

<p>EDIT: </p>

<p>I use a precompiled version of PySide. Could this be the reason for this behaviour?</p>

<p>@Andreas Schwab,
You need to ensure pylint is installed in the python environment in which you have installed the PySide package.
You will also need to ensure this same environment (python interpreter) is referenced in settings.json in the python.pythonPath setting.</p>

<p>You can find more details on these two here: </p>

<ul>
<li><a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Python-Path-and-Version#selecting-an-interpreter" rel="nofollow">Selecting an interpreter</a>  </li>
<li><a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Troubleshooting-Linting#1-unable-to-import--pylint" rel="nofollow">unable to import xxx</a> </li>
</ul>

python qt pyside vscode