1、file => preferences =>setting
2、搜索python.pythonPath
3、设置workspace settings 中的python path为anaconda中的python命令的路径

"/anaconda3/envs/mlbook/bin/python"
4、这样我们打开一个py文件,就会自动切换到虚拟环境中

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-02-13
  • 2022-12-23
相关资源
相似解决方案