【发布时间】:2019-07-17 08:41:17
【问题描述】:
我在我的项目中设置了一个名为“myenv”的 python 虚拟环境。然后,我尝试从 VS 代码调试脚本。
这是输出。请提供一些见解。谢谢
$ cd d:\\xx\\yy ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 d:\\xx\\yy\\myenv\\Scripts\\python.exe c:\\Users\\xyz\\.v
scode\\extensions\\ms-python.python-2019.6.24221\\pythonFiles\\ptvsd_launcher.py --default --client --host localhost --port 1817 d:\\xx\
\yy\\.vscode\\launch.json
bash: env: command not found
(myenv)
我的启动 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"
}
]
}
【问题讨论】:
-
安装最新版VS code后问题解决。
标签: python debugging visual-studio-code virtual-environment