Mac.zsh- no matches found- httpx[http2]

发布时间 2023-04-23 21:01:52作者: 风吹南下

场景:pip3 install httpx[http2] 当在Mac中执行此命令时出现 zsh: no matches found: httpx[http2]

注意:此问题适用于所有相关场景 zsh: no matches found: xxx

解决办法:

1.编辑 zprofile 文件

vim ~/.zprofile
2.在文件中添加 setopt no_nomatch,然后按ESC保存文件 :wq

setopt no_nomatch
3.重新执行文件

source ~/.zprofile