VSCode报错:Import “numpy“ could not be resolved Pylance

这里写自定义目录标题

  • VSCode报错:Import "numpy" could not be resolved Pylance

VSCode报错:Import “numpy” could not be resolved Pylance

  1. ctrl-shift-p
  2. 搜索栏输入python选择Python: Select Interpreter
  3. 指定你需要的python版本

引起问题的原因是安装了多个python版本,vscode无从选择

你可能感兴趣的:(vscode,ide,编辑器)