You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

通过VSCode调用PyQt Designer失败:路径为目录报错

解决VSCode PyQt Integrator调用Qt Designer路径错误问题
  • 错误原因:你指定的路径/Users/atillayildirim/opt/anaconda3/pkgs/qt-main-5.15.2-h719ae48_7/bin/Designer.app是Mac应用包目录,并非可执行文件,系统无法直接执行目录因此报错。

  • 正确路径设置:需要指向.app包内部的实际可执行文件,正确路径为:

    /Users/atillayildirim/opt/anaconda3/pkgs/qt-main-5.15.2-h719ae48_7/bin/Designer.app/Contents/MacOS/Designer
    
  • 操作步骤:

    1. 打开VSCode设置,搜索PyQt Integrator相关配置项
    2. 找到Qt Designer的路径设置字段,替换为上述正确路径
    3. 保存设置后,重新尝试使用“PYQT: NEW FORM”功能

报错信息回顾:
Error: Command failed: "/Users/atillayildirim/opt/anaconda3/pkgs/qt-main-5.15.2-h719ae48_7/bin/Designer.app"
/bin/sh: /Users/atillayildirim/opt/anaconda3/pkgs/qt-main-5.15.2-h719ae48_7/bin/Designer.app: is a directory

内容的提问来源于stack exchange,提问作者Aybars Yıldırım

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 07:37:01