code cunner默认使用python
但是我的库都在python3里,使用python3运行才行
在插件管理器里设置code runner
VScode踩坑实录——code runner配置python3
选择Extension Settings
VScode踩坑实录——code runner配置python3

找到Executor Map,点击 在settings.json中编辑
VScode踩坑实录——code runner配置python3

把大括号中原来默认的注释掉,输入“code-run.executorMap”,tab一下就自动补全默认的配置了
在下面找到python项,给他改成python3,就行了
这下再回去ctrl+alt+n就没问题了

相关文章:

  • 2021-11-10
  • 2021-06-08
  • 2022-12-23
  • 2021-05-27
  • 2021-09-20
  • 2022-01-22
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-10-07
  • 2022-12-23
  • 2021-09-21
  • 2022-01-11
相关资源
相似解决方案