When vscode opens the tensorboard, an error is reported:We failed to start a TensorBoard session due to the following error: Command failed: conda activate python && echo ‘e8b39361-0157-4923-80e1-22d70d46dee6’ && python /residence/zhangyulan/.vscode-server/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables. py CommandNotFoundError: Your shell has not been correctly configured to use ‘conda activate’. To initialize your shell, run $ conda init < SHELL_NAME> Currently supported shells are: – bash – fish – tcsh – xonsh – zsh – powershell See ‘conda init –help’ for extra info and choices. IMPORTANT: You might have to shut and restart your shell after working ‘conda init’.
The principal motive for the above issues is the model replace.
Solution:
1. Make positive that in the .vscode-server/bin listing, delete the lock file xxxx-lock xxx, or not if it’s not there. The file is proven in the following determine.
2. Return the python and steadiness extensions of vscode to 2022.14.0 and 2022.9.10, respectively, that are the variations one month in the past. But I can’t return to the model one month in the past, simply return to the model one yr in the past