pylint false positive E0401 import errors in vscode while using venv : <p>I created a venv using python3.6 on my mac os in this folder
<code>/Users/kim/Documents/Apps/PythonApps/python36-miros-a3</code></p>

<p>I ran a <code>pip install pylint</code> after I activated the virtual env</p>

<p>My workspace is in <code>/Users/kim/Documents/Apps/WebApps/miros-a3</code></p>

<p>Inside my vscode workspace, I have the following Workspace settings</p>

<pre><code>{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {
        "python.pythonPath": "/Users/kim/Documents/Apps/PythonApps/python36-miros-a3/bin/python3.6",
        "python.venvPath": "/Users/kim/Documents/Apps/PythonApps"
    }
}
</code></pre>

<p>I have tried setting a custom path for the pylint and also changing the venvpath.</p>

<p>The pylint kept complaining about the import statement saying it does not exist.</p>

<p><a href="https://i.stack.imgur.com/3h7LR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3h7LR.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/9gs8b.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9gs8b.png" alt="enter image description here"></a></p>

<p>As you can see, they are in the same folder, and I can definitely execute my python files.</p>

<p>What can I do to avoid these kind of false positive import errors?</p>

<p>I have also tried the following:</p>

<ol>
<li>go to commandline turn on the virtual env and then type <code>code</code> to activate the vscode as recommended here <a href="https://code.visualstudio.com/docs/setup/mac" rel="noreferrer">https://code.visualstudio.com/docs/setup/mac</a></li>
<li>also tried this <a href="https://donjayamanne.github.io/pythonVSCodeDocs/docs/troubleshooting_linting/" rel="noreferrer">https://donjayamanne.github.io/pythonVSCodeDocs/docs/troubleshooting_linting/</a></li>
</ol>
