I have installed the first Python interpreter in my Windows PC and the path of python.exe is
C:\Users\myname\AppData\Local\Programs\Python\Python38-32\python.exe It worked well originally (running, debugging, etc...).
Recently, I tried to install miniconda in my computer to build different Python environment and the path of python.exe is
D:\miniconda\python.exe I followed the tutorial on VScode office to select the conda environment I created. And the Status Bar seems to be correct:
However, if I run the following python code:
import sys sys.executable The output is:
C:\Users\myname\AppData\Local\Programs\Python\Python38-32\python.exe which doesn't seem to be correct.
I have added both the two path of Python into the Path environment variable in my Windows settings. How to fix this problem?
pythonand then run the code above step by step in the VScode terminal