在visualstudi中用Vagrant设置远程Python解释器

2024-06-07 05:44:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我在visualstudio中设置了一个Python项目,我想通过连接到远程Python解释器来运行Python测试 通过流浪汉。我的项目目录中有一个流浪者文件。我无法将远程python解释器添加到我的项目中

我在visualstudioide中安装了一个Vagrant插件

我添加了如下工作区设置:

{
"python.pythonPath": "C:\\Python27\\python.exe",
  "python.autoComplete.extraPaths": [
    "${env.SPARK_HOME}\\python",
    "${env.SPARK_HOME}\\python\\pyspark"
  ],
  "python.linting.pylintEnabled": true,
  "python.linting.enabled": true,
  "python.venvPath": "C:/Users/Sricharan/Attw/python-proj/Vagrantfile"
}

我添加了如下用户设置:

{
  "editor.tabSize": 4,
  "editor.insertSpaces": true,
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "python.pythonPath": "python"
}

请帮忙


Tags: 文件项目目录envtruehome远程解释器