HomeBrew -bash:$:找不到命令 [英] HomeBrew -bash: $: command not found

查看:487
本文介绍了HomeBrew -bash:$:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac上安装pyqt.我已经安装了自制软件,而且看起来不错",但是当我运行命令$ brew install pyqt时,出现以下错误:

I am trying to install pyqt on my mac. I have installed homebrew and it seems to be "fine" but when I run the command $ brew install pyqt I get the following error:

-bash:$:找不到命令

-bash: $: command not found

有人可以指出正确的方向吗,我看过几个网站,但似乎无法对其进行故障排除.

Could someone please point me in the right direction, I have looked at several websites but I can't seem to troubleshoot it.

谢谢

推荐答案

您似乎从网站或其他来源复制了一行.通常,终端命令在文档中带有示例终端提示的前缀.例如,如果系统指示您运行ls命令,则通常会看到该命令打印为

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.

因此在没有$的情况下运行brew install pyqt.

So run brew install pyqt without the $.

这篇关于HomeBrew -bash:$:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆