命令失败:是一个目录

问题描述 投票:0回答:1

尝试通过 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
python visual-studio-code pyqt pyqt5 vscode-extensions
1个回答
0
投票

您使用的是 macOS 吗?

.app
是 macOS“可执行文件”。我将其放在引号中,因为正如它所说的here
.app
文件实际上是包含一堆内容的包,包括可执行文件本身。

.app
包内部,有一个
MacOS
目录,其中应包含可执行文件,因此您需要在那里查找 VSCode 需要运行的文件。

© www.soinside.com 2019 - 2024. All rights reserved.