通过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操作步骤:
- 打开VSCode设置,搜索
PyQt Integrator相关配置项 - 找到Qt Designer的路径设置字段,替换为上述正确路径
- 保存设置后,重新尝试使用“PYQT: NEW FORM”功能
- 打开VSCode设置,搜索
报错信息回顾:
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
相关产品推荐
相关产品推荐

