4

我正在尝试在我的 Mac 上安装 pyqt。我已经安装了 Homebrew,它似乎“很好”,但是当我运行命令时

$ brew install pyqt 

我收到以下错误:

-bash: $: command not found

有人可以指出我正确的方向吗,我查看了几个网站,但似乎无法解决问题。

4

1 回答 1

9

It looks like you copied a line from a website or other source. Generally, terminal commands are prefixed by a sample terminal prompt in documentation. For example, if you're instructed to run the ls command, you'll often see it printed as

$ ls

in documentation. That $ is not part of the command, it merely represents a terminal prompt.

So run brew install pyqt without the $.

于 2013-08-14T19:01:44.623 回答