51
loading...
This website collects cookies to deliver better user experience
python -V
and find out if it is installed or not.Go to the Extensions Tab and search for Python
ctrl + shift + P
, inside the input filed type in Python: Select Interpreter
and hit enter. You should see a few or a list of available Interpreters that you have configured as default or have used in other environments.Select Python Interpreter
icon with the warning sign on the Bottom Left Corner of the windows.Workspace Tab
."python.pythonPath": "<path-to-your-interpreter>\\python.exe"
activate.bat
fileactivate.bat
file should look something like thisC:\\<path-to-conda-installation>\\Scripts\\activate.bat
C:\\<path-to-conda-installation>\\Scripts\\activate.bat C:\\<path-to-conda-installation>
conda activate <your-env-name>
terminal.integrated.profile.windows
edit in setting.json
and add the following{
"python.pythonPath": "C:\\Users\\user\\Anaconda3\\envs\\django_env\\python.exe",
"python.terminal.activateEnvironment": true,
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}
edit in settings.json
"python.condaPath": "C:\\Users\\user\\anaconda3\\Scripts\\conda.exe",
"terminal.integrated.defaultProfile.windows": "Command Prompt"
command prompt
to run conda.exe` terminal whenever we start terminal in the particular workspace.conda
.