Conda and Visual Studio Code debugging

前端 未结 3 427
余生分开走
余生分开走 2020-12-09 11:14

The goal is to be able to use my environment setup from Conda/Anaconda within the visual studio code debugger. The default pythonpath configuration does not produce this eff

3条回答
  •  粉色の甜心
    2020-12-09 11:39

    When starting Visual Studio Code from an activated Conda environment, I was able to use the environment variable to specify the path (MacOS):

    {
        "python.pythonPath": "~/anaconda/envs/${env.CONDA_DEFAULT_ENV}/bin/python"
    }
    

    Go to Workplace Settings by pressing Cmd , or navigating from the top menu, then add this to settings.json

提交回复
热议问题