Skip to content

Cannot Select Python Interpreter #18567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yq574485585 opened this issue Feb 23, 2022 · 15 comments
Closed

Cannot Select Python Interpreter #18567

yq574485585 opened this issue Feb 23, 2022 · 15 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster investigating We are looking into the cause of the issue

Comments

@yq574485585
Copy link

Issue Type: Bug

  1. Every time enter vscode, "Python is not installed" is remainded at the right bottom but actually Python is well-installed.
  2. Cannot select any python interpreter. When click the"Select Python Interpreter" button, no env will be found. It doesn't work even I added a path to my anaconda env's interpreter.

VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z)
OS version: Windows_NT x64 10.0.18363
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 x 2494)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.89GB (4.09GB free)
Process Argv --crash-reporter-id 22d58a57-fa7c-4c23-ab3c-99b6e7b96d9f
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
vscode-language-pack-zh-hans MS- 1.64.7
python ms- 2022.0.1814523869
vscode-pylance ms- 2022.2.3
jupyter ms- 2022.1.1301854968
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.6
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30425749
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstartedc:30433508
vsclayoutctrc:30437038
vsrem710:30416614
dsvsc008:30440022
pythonvsnew555:30442236
vsbas813:30436447
vscscmwlcmt:30438805
helix:30440343
vscaat:30438848

@Tyriar Tyriar assigned karthiknadig and unassigned Tyriar Feb 23, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 23, 2022
@karthiknadig karthiknadig transferred this issue from microsoft/vscode Feb 23, 2022
@karthiknadig
Copy link
Member

karthiknadig commented Feb 23, 2022

@yq574485585 Please provide the logs as mentioned in the issue template.

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug triage and removed triage-needed Needs assignment to the proper sub-team labels Feb 23, 2022
@karrtikr karrtikr added the info-needed Issue requires more information from poster label Feb 23, 2022
@yq574485585

This comment was marked as duplicate.

@karrtikr

This comment was marked as resolved.

@yq574485585

This comment was marked as duplicate.

@karrtikr
Copy link

Just formatting your reply as markdown so it's easier to read:

Hi, Kartik!

The log is following:

用户属于 'pythonaa' 实验组
用户属于 'pythonTensorboardExperiment' 实验组
用户属于 'PythonPyTorchProfiler' 实验组
用户属于 'pythonDeprecatePythonPath' 实验组
用户属于 'pythonInterpreterInfoPinned' 实验组
[DEBUG 2022-1-24 23:14:46.278]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.282]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.282]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.284]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\000PhD_Work\\000PhD literatures\\Group papers\\20210603-Feng Yuan"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.564]: Testing: Setting up watcher for d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[INFO 2022-1-24 23:14:46.570]: [
  'Display locator refreshing progress, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:14:46.573]: Searching for conda.
[DEBUG 2022-1-24 23:14:46.639]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\000PhD_Work\\000PhD literatures\\Group papers\\20210603-Feng Yuan"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.640]: Probing conda binary: conda
[DEBUG 2022-1-24 23:14:46.683]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.684]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.699]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.699]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
> conda info --json
[DEBUG 2022-1-24 23:14:46.744]: Searching for workspace virtual envs in: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[DEBUG 2022-1-24 23:14:46.744]: Getting roots
[DEBUG 2022-1-24 23:14:46.744]: Found roots
[DEBUG 2022-1-24 23:14:46.783]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.783]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:46.784]: Cached data exists getEnvironmentVariables, d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
> C:\ProgramData\Anaconda3\python.exe ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\interpreterInfo.py
[INFO 2022-1-24 23:14:46.838]: Validating C:\ProgramData\Anaconda3\python.exe normally failed with error, falling back to using conda run: (Error: spawn ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Windows\SysWOW64 ENOENT)
[DEBUG 2022-1-24 23:14:46.985]: Getting roots
[DEBUG 2022-1-24 23:14:47.31]: Found roots
[DEBUG 2022-1-24 23:14:47.31]: Start watching root d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan for globs ["python.exe","*/python.exe","*/Scripts/python.exe"]
[DEBUG 2022-1-24 23:14:47.32]: Start watching: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan with pattern python.exe using VSCode API
[DEBUG 2022-1-24 23:14:47.32]: Start watching: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan with pattern */python.exe using VSCode API
[DEBUG 2022-1-24 23:14:47.32]: Start watching: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan with pattern */Scripts/python.exe using VSCode API
[DEBUG 2022-1-24 23:14:47.113]: Cached data exists getEnvironmentVariables, <No Resource>
> C:\Python\python.exe ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\interpreterInfo.py
[ERROR 2022-1-24 23:14:47.116]: [Error: spawn ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Windows\SysWOW64 ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
      at onErrorNT (internal/child_process.js:465:16)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn ;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Windows\\SysWOW64',
  path: ';C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Windows\\SysWOW64',
  spawnargs: [
    '-c',
   'C:\\Python\\python.exe c:\\Users\\Administrator\\.vscode\\extensions\\ms-python.python-2022.0.1814523869\\pythonFiles\\get_output_via_markers.py c:\\Users\\Administrator\\.vscode\\extensions\\ms-python.python-2022.0.1814523869\\pythonFiles\\interpreterInfo.py'
  ],
  cmd: 'C:\\Python\\python.exe c:\\Users\\Administrator\\.vscode\\extensions\\ms-python.python-2022.0.1814523869\\pythonFiles\\get_output_via_markers.py c:\\Users\\Administrator\\.vscode\\extensions\\ms-python.python-2022.0.1814523869\\pythonFiles\\interpreterInfo.py'
}
[DEBUG 2022-1-24 23:14:47.748]: conda info --json: {
  "active_prefix": null,
  "active_prefix_name": null,
  "channels": [
    "https://repo.anaconda.com/pkgs/main/win-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/win-64",
    "https://repo.anaconda.com/pkgs/r/noarch",
    "https://repo.anaconda.com/pkgs/msys2/win-64",
    "https://repo.anaconda.com/pkgs/msys2/noarch"
  ],
  "conda_build_version": "3.18.9",
  "conda_env_version": "4.7.12",
  "conda_location": "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\conda",
  "conda_prefix": "C:\\ProgramData\\Anaconda3",
  "conda_private": false,
  "conda_shlvl": -1,
  "conda_version": "4.7.12",
  "config_files": [
    "C:\\Users\\Administrator\\.condarc"
  ],
  "default_prefix": "C:\\ProgramData\\Anaconda3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_ROOT": "C:\\ProgramData\\Anaconda3",
    "CUDA_PATH": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.4",
    "HOMEPATH": "\\Users\\Administrator",
    "NVTOOLSEXT_PATH": "C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",
    "PATH": "C:\\ProgramData\\Anaconda3;C:\\ProgramData\\Anaconda3\\Library\\mingw-w64\\bin;C:\\ProgramData\\Anaconda3\\Library\\usr\\bin;C:\\ProgramData\\Anaconda3\\Library\\bin;C:\\ProgramData\\Anaconda3\\Scripts;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Anaconda;C:\\Program Files (x86)\\cwRsync\\bin;C:\\Program Files\\MATLAB\\R2021b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\dotnet\\;C:\\Anaconda\\Library\\bin;C:\\Anaconda\\Library\\user\\bin;C:\\Anaconda\\Library\\mingw-w64\\bin;C:\\Anaconda\\Scripts;C:\\Anaconda\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Anaconda\\envs\\pytorch;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\NVIDIA Corporation\\NVSMI;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps",
    "PSMODULEPATH": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>",
    "VSCODE_CODE_CACHE_PATH": "C:\\Users\\Administrator\\AppData\\Roaming\\Code\\CachedData\\f80445acd5a3dadef24aa209168452a3d97cc326"
  },
  "envs": [
    "C:\\ProgramData\\Anaconda3",
    "C:\\ProgramData\\Anaconda3\\envs\\pytorch"
  ],
  "envs_dirs": [
    "C:\\ProgramData\\Anaconda3\\envs",
    "C:\\Users\\Administrator\\.conda\\envs",
    "C:\\Users\\Administrator\\AppData\\Local\\conda\\conda\\envs"
  ],
  "is_windows_admin": true,
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "C:\\ProgramData\\Anaconda3\\pkgs",
    "C:\\Users\\Administrator\\.conda\\pkgs",
    "C:\\Users\\Administrator\\AppData\\Local\\conda\\conda\\pkgs"
  ],
  "platform": "win-64",
  "python_version": "3.7.4.final.0",
  "rc_path": "C:\\Users\\Administrator\\.condarc",
  "requests_version": "2.22.0",
  "root_prefix": "C:\\ProgramData\\Anaconda3",
  "root_writable": true,
  "site_dirs": [],
  "sys.executable": "C:\\ProgramData\\Anaconda3\\python.exe",
  "sys.prefix": "C:\\ProgramData\\Anaconda3",
  "sys.version": "3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]",
  "sys_rc_path": "C:\\ProgramData\\Anaconda3\\.condarc",
  "user_agent": "conda/4.7.12 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362",
  "user_rc_path": "C:\\Users\\Administrator\\.condarc",
  "virtual_pkgs": [
    [
      "__cuda",
      "11.4"
    ]
  ]
}

[DEBUG 2022-1-24 23:14:47.749]: Found conda via filesystem probing: conda
[DEBUG 2022-1-24 23:14:47.749]: Searching for conda environments using conda
[DEBUG 2022-1-24 23:14:47.749]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoCached-Args="conda"
[DEBUG 2022-1-24 23:14:47.749]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoCached-Args="conda"
[DEBUG 2022-1-24 23:14:47.749]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.750]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-24 23:14:47.751]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.752]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.754]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.761]: Found conda environment: C:\ProgramData\Anaconda3\python.exe
[DEBUG 2022-1-24 23:14:47.762]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.763]: Found conda environment: C:\ProgramData\Anaconda3\envs\pytorch\python.exe
[DEBUG 2022-1-24 23:14:47.763]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.809]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.809]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.810]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.811]: Cached data exists getEnvironmentVariables, <No Resource>
> C:\ProgramData\Anaconda3\envs\pytorch\python.exe ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.0.1814523869\pythonFiles\interpreterInfo.py
[INFO 2022-1-24 23:14:47.812]: Validating C:\ProgramData\Anaconda3\envs\pytorch\python.exe normally failed with error, falling back to using conda run: (Error: spawn ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Windows\SysWOW64 ENOENT)
[DEBUG 2022-1-24 23:14:47.812]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.812]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-24 23:14:47.812]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.813]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.813]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.926]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.927]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.927]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.928]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.928]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.928]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.929]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-1-24 23:14:47.936]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[ERROR 2022-1-24 23:14:47.936]: No python is installed or a refresh has not already been triggered
[INFO 2022-1-24 23:14:47.937]: [
  'Display locator refreshing progress, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:14:47.941]: Searching for conda environments using conda
[DEBUG 2022-1-24 23:14:47.941]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.944]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.944]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.945]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.946]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.946]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.947]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.948]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.949]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.950]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.952]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.952]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.954]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:47.968]: Searching for workspace virtual envs in: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[DEBUG 2022-1-24 23:14:47.970]: Found conda environment: C:\ProgramData\Anaconda3\python.exe
[DEBUG 2022-1-24 23:14:47.970]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.972]: Found conda environment: C:\ProgramData\Anaconda3\envs\pytorch\python.exe
[DEBUG 2022-1-24 23:14:47.972]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:47.974]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.974]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.975]: Cached data exists getEnvironmentVariables, d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan\Kernel_py.py
[DEBUG 2022-1-24 23:14:47.999]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:47.999]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.0]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:48.0]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.0]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.1]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-1-24 23:14:48.2]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
正在启动 Pylance 语言服务器。
[DEBUG 2022-1-24 23:14:48.554]: Cached data exists getEnvironmentVariables, d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[INFO 2022-1-24 23:14:48.628]: [
  'Starting language server, Class name = r, completed in 618ms, has a falsy return value, , Return Value: undefined'
]
[ERROR 2022-1-24 23:14:48.632]: No python is installed or a refresh has not already been triggered
[INFO 2022-1-24 23:14:48.632]: [
  'Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:14:48.635]: Searching for conda environments using conda
[DEBUG 2022-1-24 23:14:48.635]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:48.637]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.637]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.638]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:48.639]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.639]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.640]: Cached data exists getEnvironmentVariables, <No Resource>
Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension.
[DEBUG 2022-1-24 23:14:48.641]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.641]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.642]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:48.642]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.642]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.643]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:48.657]: Searching for workspace virtual envs in: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[DEBUG 2022-1-24 23:14:48.658]: Found conda environment: C:\ProgramData\Anaconda3\python.exe
[DEBUG 2022-1-24 23:14:48.659]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:48.661]: Found conda environment: C:\ProgramData\Anaconda3\envs\pytorch\python.exe
[DEBUG 2022-1-24 23:14:48.661]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:14:48.669]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.669]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.672]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:14:48.673]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.673]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:14:48.674]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-1-24 23:14:48.675]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:15:10.358]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.358]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.359]: Cached data exists getEnvironmentVariables, d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan\Kernel_py.py
[INFO 2022-1-24 23:15:10.359]: Diagnostic Code: PythonPathDeprecatedDiagnostic, Message: Python 扩展将不再使用 settings.json 中的 "python.pythonPath" 设置。可以将其替换为新设置 "python.defaultInterpreterPath"。请注意默认解释器需要手动修改,Python 扩展不会在每次切换解释器时修改该设置。[了解更多](https://aka.ms/AA7jfor).
[DEBUG 2022-1-24 23:15:10.361]: [object Object]. Shell identified as undefined
[DEBUG 2022-1-24 23:15:10.361]: Shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe', base path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell'
[DEBUG 2022-1-24 23:15:10.361]: Shell path identified as shell 'powershell'
[DEBUG 2022-1-24 23:15:10.361]: Terminal shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' identified as shell 'powershell'
[DEBUG 2022-1-24 23:15:10.361]: [object Object]. Shell identified as powershell
[DEBUG 2022-1-24 23:15:10.361]: Shell identified as 'powershell'
[ERROR 2022-1-24 23:15:10.361]: No python is installed or a refresh has not already been triggered
[INFO 2022-1-24 23:15:10.362]: [
  'Display locator refreshing progress, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:15:10.365]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-24 23:15:10.365]: Searching for conda environments using conda
[DEBUG 2022-1-24 23:15:10.365]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:15:10.366]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.366]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.366]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.367]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.367]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.368]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.369]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.369]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.369]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.370]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.370]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.370]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.388]: Searching for workspace virtual envs in: d:\000PhD_Work\000PhD literatures\Group papers\20210603-Feng Yuan
[DEBUG 2022-1-24 23:15:10.393]: Found conda environment: C:\ProgramData\Anaconda3\python.exe
[DEBUG 2022-1-24 23:15:10.393]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:15:10.394]: Found conda environment: C:\ProgramData\Anaconda3\envs\pytorch\python.exe
[DEBUG 2022-1-24 23:15:10.394]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-24 23:15:10.406]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.406]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.408]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.408]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.408]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.409]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-1-24 23:15:10.409]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-24 23:15:10.410]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.410]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.410]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-24 23:15:10.420]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.421]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:10.422]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\000PhD_Work\\000PhD literatures\\Group papers\\20210603-Feng Yuan"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:40.92]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:40.92]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\000PHD_WORK\\000PHD LITERATURES\\GROUP PAPERS\\20210603-FENG YUAN"-Arg-Separator-undefined
[DEBUG 2022-1-24 23:15:40.93]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1

Feel free to contact me if you have further needs. Hoping you can help me out!

Thank you,
yq574485585
Qiang
发件人: Kartik @.>
发送时间: 2022年2月24日 22:25
收件人: @.
>
抄送: @.>; @.>
主题: Re: [microsoft/vscode-python] Cannot Select Python Interpreter (Issue #18567)

@yq574485585https://github.com/yq574485585 Yes, can you please also set python.logging.level to debug in User settings, reload, send us the log again? Thanks!


Reply to this email directly, view it on GitHub#18567 (comment), or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVQX5IDQGBAS5BKRNUX625LU4Y5VBANCNFSM5PE6DYEA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>

@karrtikr karrtikr removed the info-needed Issue requires more information from poster label Feb 24, 2022
@mchobbylong
Copy link

Same situation is happening at my side. Please ping me if more information is needed on this issue :-)

@qingping08
Copy link

me too

@bengrau
Copy link

bengrau commented Mar 1, 2022

I have the same issue since 2 weeks. I have downgraded the Python extension to version v2021.11.1422169775 but it still shows the error. Also downgraded Pylance to version v2021.12.2 the issue still exists

@OttawaSTEM
Copy link

Can't select Python Interpreter if directory name has symbol, for example "C:\Workspace\C++" it will fail to find the Python Interpreter,
"C:\Workspace\CPP" is ok.

@yq574485585
Copy link
Author

Can't select Python Interpreter if directory name has symbol, for example "C:\Workspace\C++" it will fail to find the Python Interpreter, "C:\Workspace\CPP" is ok.

However my Python Interpreter directory name doesn' t have any symbol, so it's not the solution for my case. Anyway thanks for your reply :)

@yq574485585
Copy link
Author

I have the same issue since 2 weeks. I have downgraded the Python extension to version v2021.11.1422169775 but it still shows the error. Also downgraded Pylance to version v2021.12.2 the issue still exists

I also tried to downgrade Python extension to old version. My current version is v2021.5.926500501, it can run my code in conda env's interpreter but still shows 'Cannot Select Python Interpreter' and Python is not installed. Very strange.

@vanmorden
Copy link

I have the same problem.
In my case, I found that the problem is in the path of the folder open on VSCode.
There is an error because a regular expression is used and the text have two symbol ++ that are not escaped:

[ERROR 2022-2-21 14:32:50.866]: [SyntaxError: Invalid regular expression: /d:(\\|/)Usuario(\\|/)AppData(\\|/)Roaming(\\|/)**Notepad++**(\\|/)plugins(\\|/)Config(\\|/)PythonScript(\\|/)Scripts/: Nothing to repeat at new RegExp (<anonymous>) at h (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759) at d.getDisplayCommands (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538) at d.logProcess (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276) at s.emit (events.js:315:20) at shellExec (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373) at Object.t.shellExecute (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737) at async Object.t.getInterpreterInfo (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805) at async c.p [as workerFunc] (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037) at async start (c:\Users\Usuario\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)] Python interpreter path: D:\ProgramasInstalados\Python\Python310\python.exe

I hope that help you find the bug.

@karrtikr karrtikr added investigating We are looking into the cause of the issue and removed triage labels Mar 21, 2022
@weedfreer
Copy link

weedfreer commented Apr 9, 2022

OMG...I think I just figured this out.

I've been having EXACTLY the same issue.

It appears that, not only can you NOT have symbols included within your folder structure relating to your Python Interpreters but that the same ALSO seems to be the case with regards to the Projects folder too!!

I had stored my VS Code Explorer projects folder within a root folder named 'C:\01) Data\ [sub folder root to project repository]'

I've litterally just moved my VS Code Explorer projects storage directory into a sub folder of my 'C:\Python' interpreter folders called 'Projects' and my problems went away!

Comon Microsoft...sort it out!!

i notice that the OP seems to have a folder stucture in use called 'd:\000PhD_Work' is all...SURELY it cant be THAT simple!?

@karrtikr
Copy link

A potential fix should be out in the pre-release version of the extension in a day, use the following to try it out:

image

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Apr 11, 2022
@ghost
Copy link

ghost commented May 6, 2022

I have this issue and I reported it at first at the vscode's github.

microsoft/vscode#147997

@karrtikr
Copy link

karrtikr commented May 6, 2022

I'll take it the original bug is now fixed as no response was provided, closing this. Let me know if it hasn't been fixed and we'll be happy to reopen.

@thesalmonidae The issue you face is likely due to #18930.

@karrtikr karrtikr closed this as completed May 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster investigating We are looking into the cause of the issue
Projects
None yet
Development

No branches or pull requests

10 participants