当前位置:   article > 正文

vscode python 采用 venv环境调试_venv launch.json python

venv launch.json python

创建launch.json

  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Python: 当前文件",
  9. "type": "python",
  10. "request": "launch",
  11. "program": "${file}",
  12. "console": "integratedTerminal",
  13. "justMyCode": true,
  14. "python": "${fileDirname}/venv/bin/python",
  15. "args": [
  16. "-s",
  17. "~/Downloads/ai/swapfacetest/1.jpg",
  18. "-t",
  19. "~/Downloads/ai/swapfacetest/liudehua.png",
  20. "-o",
  21. "/tmp/o.png",
  22. "--execution-provider",
  23. "cuda"
  24. ]
  25. }
  26. ]
  27. }

打开文件,按下快捷键F5即可。

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/752356
推荐阅读
相关标签
  

闽ICP备14008679号