尝试通过 VSC 运行 PyQtDesigner 但失败。
我试图通过 VSC 的 PyqT Integrator 使用 PyQt Designer 并发送 QTDesigner 路径,如下所示:
/Users/atillayildirim/opt/anaconda3/pkgs/qt-main-5.15.2-h719ae48_7/bin/Designer.app
Homever,当我尝试使用 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
您使用的是 macOS 吗?
.app
是 macOS“可执行文件”。我将其放在引号中,因为正如它所说的here,.app
文件实际上是包含一堆内容的包,包括可执行文件本身。
在
.app
包内部,有一个 MacOS
目录,其中应包含可执行文件,因此您需要在那里查找 VSCode 需要运行的文件。