'zsh: no matches found: fastapi[all]

command: pip3 install fastapi[all]

error: zsh: no matches found: fastapi[all]

I am on MacBook Air 2020 with Python 3.8.



Solution 1:[1]

You need to escape the brackets, so the command would look like this

pip3 install fastapi\[all\]

Or as alternative, you quote the package name

pip3 install 'fastapi[all]'

A third alternative would be to use noglob

noglob pip3 install fastapi[all]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1