2

I use the python formatter Black, but when I switched to zsh it stop working. Every time I try to use it manually through the terminal I get zsh: command not found: black

I have it installed here /Users/HBrovell/Library/Python/3.7/bin/black and added to my .zshrc with export PATH="/Users/HBrovell/Library/Python/3.7/bin/black:$PATH"

What I'm missing here to get it to work?

4

1 回答 1

3

You don't add black itself to the PATH; you add the directory containing black:

export PATH="/Users/HBrovell/Library/Python/3.7/bin/:$PATH"
于 2019-11-14T21:18:23.903 回答