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

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

问题描述

我正在尝试在Mac上安装pyqt.我已经安装了Homebrew,它似乎不错".但是当我运行命令

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 

我收到以下错误:

-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 $.

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

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