[英]Setting the Python path in Visual Studio Code for file 'launch.json'
[英]how to configure the launch.json in VS code to accept a network path (python) in windows
我已获得python
exe 的以下网络路径(在windows10
中):
\\eu\tac\conda\1.0\win\envs\dev\CURRENT\python.exe
请注意上述路径中的单引号和双\
。
我尝试在vscode
launch.json
包含以下内容:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: network (not working)",
"type": "python",
"request": "launch",
"program": "\\eu\\tac\\conda\\1.0\\win\\envs\\dev\\CURRENT\\python.exe",
"console": "integratedTerminal",
"justMyCode": true
}
]
}
但是,我不断收到错误,或者是指无效语法,这些语法可能来自我尝试过的\
和/
变体。 或No such file or directory: 'H:\\eu\\tac\\conda\\1.0\\win\\envs\\dev\\CURRENT\\python.exe'
错误消息,因为终端添加了H:
在节目之前。
所以问题是,我怎样才能让vscode
正确识别路径?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.