简体   繁体   English

VSCode Code Runner 不遵循设置。json

[英]VSCode Code Runner not following settings.json

I set my settings.json to Anaconda python 3.6.10 but Code runner still runs the code in 3.7.6.我将我的 settings.json 设置为 Anaconda python 3.6.10,但代码运行器仍在 3.7.6 中运行代码。 I used OS to check and in fact, that is true.我用操作系统来检查,事实上,这是真的。 I then used terminal to run my file and it is Python 3.6.10.然后我使用终端运行我的文件,它是 Python 3.6.10。 How can I change my Code Runner to run at whatever version I set in the.vscode settings.json file?如何更改我的 Code Runner 以在我在 .vscode settings.json 文件中设置的任何版本运行?

"code-runner.executorMap": {
    "python": "$pythonPath -u $fullFileName",
},

With this it should follow the anaconda settings in VS Code.有了这个,它应该遵循 VS Code 中的 anaconda 设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 缺少 VSCode Settings.json - VSCode Settings.json is missing VS Code 代码运行器扩展:由于空格,努力将 Python PATH 添加到 settings.json - VS Code Code runner extension: Struggling to add Python PATH to settings.json due to whitespace 在VSCode中,pygame没有'init'成员,尝试在设置中添加代码。json,仍然有困难 - In VSCode, pygame has no 'init' member, tried adding code to settings.json, still having difficulties 编辑设置后无法在VScode中运行python。json - Can't run python in VScode after editing settings.json 如何在 Visual Studio Code 中获取 settings.json 的 pylint 部分? - How to get to pylint part of settings.json in Visual Studio Code? Visual Studio Code 正确配置 settings.json - Visual Studio Code configure settings.json correctly Visual Studio Code 忽略 settings.json 字段:python.pythonPath - Visual Studio Code ignores settings.json field: python.pythonPath 在不使用 settings.json 文件的情况下在 VS Code 中设置本地项目的 Python 路径 - Setting the Python path for local project in VS Code without using the settings.json file 在 VS Code 中,我不想让 Black 格式化我的设置。json - In VS Code I don't want Black to format my settings.json 带代码运行程序的vscode中的Python3 UnicodeEncodeError - Python3 UnicodeEncodeError in vscode with code runner
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM