title: Miniforge / VScode - Python is not installed and virtualenv is not found
body: <p>I have been stuck on this issue for several  days, so any help is greatly appreciated.</p>
  <p>I recently had to move away from Anaconda (due to their change in the commercial policy) and decided to try <a href="https://github.com/conda-forge/miniforge" rel="nofollow noreferrer">Miniforge</a>. It comes with Python 3.9, but since in most projects I need 3.7, I created a new venv with <code>conda create --name StandardPython python=3.7.6</code>.</p>
  <p>Each time I open a python script I get the error message &quot;Python is not installed&quot;:</p>
  <p><a href="https://i.stack.imgur.com/lxB2J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxB2J.png" alt="enter image description here" /></a></p>
  <p>even though it of course is, and I can even manually select the interpreter:</p>
  <p><a href="https://i.stack.imgur.com/S6pkZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S6pkZ.png" alt="enter image description here" /></a></p>
  <p>Moreover, the virtualenv I have created is not found in the list given by VScode:</p>
  <p><a href="https://i.stack.imgur.com/oncrf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oncrf.png" alt="enter image description here" /></a></p>
  <p>I can select it manually with &quot;Enter the interpeter path&quot;, but besides that being a long process to do each time I want to switch envs, it also does not fix the problem as at the next restart VScode still does not show the venv in the list, even though it is indicated as &quot;current&quot;:</p>
  <p><a href="https://i.stack.imgur.com/6k6SF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6k6SF.png" alt="enter image description here" /></a></p>
  <p>It's worth mentioning that I am not using workspaces at the moment, I am just opening the python file(s) directly. This worked perfectly with Anaconda and I could select all the venvs I created without problems from the list, so switching was a breeze. Somehow now it does not work anymore.</p>
  <p>I have already tried:</p>
  <ul>
  <li>Removing (<code>conda env remove --name StandardPython</code>) and recreating the environment</li>
  <li>Setting the <code>python:pythonpath</code> in VScode to the base python <code>....\AppData\Local\miniforge3\python.exe</code></li>
  <li>Setting the <code>python:condapath</code> to Miniforge's path <code>....\AppData\Local\miniforge3\Scripts\conda.exe</code></li>
  <li>Uninstalling and reinstalling the Python plugin for VScode</li>
  <li>Uninstalling and reinstalling VScode (also manually cleaning up all configs and plugin files</li>
  <li>Uninstalling and reinstalling Miniforge</li>
  </ul>