vscode用tensorboard报错 We failed to start a TensorBoard session due to the following error: Command fa

vscode打开tensorboard时报错:We failed to start a TensorBoard session due to the following error: Command failed: conda activate pytorch && echo ‘e8b39361-0157-4923-80e1-22d70d46dee6’ && python /home/zhangyulan/.vscode-server/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py CommandNotFoundError: Your shell has not been properly 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 more information and options. IMPORTANT: You may need to close and restart your shell after running ‘conda init’.

出现上述问题的主要原因,是由于版本更新导致的。

解决方法:

1.确认在 .vscode-server/bin目录下,把xxxx-lock xxx这个lock文件删除,如果本身没有就不用删。文件如下图所示:
在这里插入图片描述
2.把vscode的python和pylance扩展分别退回到2022.14.0和2022.9.10,即一个月前的版本。但我自己退回到一个月前的版本不行,退回到了一年前的版本就可以了。
在这里插入图片描述
在这里插入图片描述

根据你提供的引用内容,当在VSCode中运行JavaScript代码时出现"Failed to load resource: the server responded with a status of 404 (Not Found)"的错误,可能有两种可能性。 第一种可能是在运行过程中,代码中引用的静态资源(如css、js、images)的路径有误,导致服务器无法找到相应的资源文件。这可能是因为在配置静态资源路径时出现了错误或者资源文件的位置不正确。你可以检查代码中引用资源文件的路径是否正确,并确保相应的资源文件确实存在于指定的路径中。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [idea写web项目时报错Failed to load resource: the server responded with a status of 404 (Not Found)](https://blog.csdn.net/perturb/article/details/125948103)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [使用Cdn引入vue.js控制台报错Failed to load resource: the server responded with a status of 404 (Not ...](https://blog.csdn.net/blackbak/article/details/129912594)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值