How can I make multiple directories in Mac OS terminal? I'm trying to make multiple folders at once but when I press enter it says: mkdir: i/like: No such file or directory.

I do this
mkdir i/like/icecream

I think I have the latest version of python.
Any help? Ty.
The switch -p allows deep folder creation along a path

mkdir -p  i/like/icecream/too


You don’t need python for this, unless it reminds you of “p” instead of the pattern passed in to create the full path prefix.