title: Wrong Python interpreter being used by VS Code
body: <p>I am on Ubuntu 20.04 and have both <code>Python2</code> and <code>Python3</code> installed natively. I have also installed Python through <code>miniforge</code>, a variant of <code>miniconda</code>. In <code>VSCode</code> I have both the <code>MS Python extension</code> and <code>Pylance</code> installed.</p>
  <p>I use the <code>miniforge</code> python for my coding. This works perfectly fine in <code>PyCharm</code>.</p>
  <p>However in <code>VSCode</code>, when I try to execute the same file I get errors. After investigating it seems that <code>VSCode</code> is picking native <code>Python2</code> - even though I have the <code>miniforge</code> Python selected. In <a href="https://imgur.com/a/hkrTwn4" rel="nofollow noreferrer">this picture</a> it can be seen that the status bar at the bottom states <code>Python interpreter</code> selected is Python3. But the output window shows that the python interpreter is Python2.</p>
  <p>A more confusing thing is when I use VSCode for Jupyter notebook files then it picks up the interpreter correctly and I have no issues.</p>
  <p>I have checked both User and Workspace settings, and they all point to Python3. How can I fix this for standard .py files?</p>
  <p>I prefer VSCode to PyCharm, but will need to use PyCharm till this is resolved.</p>