0
我正在使用vs python 3.6的代碼2.0,並且想配置一個任務來運行他當前的python文件。 tasks.json
文件有以下幾行配置任務在Windows 10的visual studio代碼中使用python
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "echo",
"type": "shell",
"command": "echo Hello"
}
]
}
如何填充行以符合我的需要。我試過很多解決方案都無濟於事,特別是這裏的Configure Vs code version 2.0.0 Build Task for python一個它顯示了以下錯誤
> Executing task: python d:\books\programming Languages\python\Projects\.vscode\tasks.json <
C:\Users\[myuser]\Anaconda3\python.exe: can't open file 'd:\books\programming': [Errno 2] No such file or directory
The terminal process terminated with exit code: 1
請步驟幫助,因爲我很新的蟒蛇。
我不熟悉VS代碼,但問題是,在'編程語言的空間在路徑中,您需要用反斜槓轉義空間或用引號括住路徑或更改目錄名稱以刪除空格。 – Dalvenjia
它的作品,非常感謝 – FSm