Can't use pip command in mac terminal without '$'

help! I can’t use the pip command in the mac terminal without putting the dollar sign in front! why is this? is something wrong?

Do you mean that the following does not work:


but the following does?


It should not matter too much that you can’t call the pip script directly:


you probably should rather always call pip’s executable module for a specific Python interpreter anyway, so a command like one of the following:

path/to/pythonX.Y -m pip
pythonX.Y -m pip
python3 -m pip
python -m pip

Now why does calling $pip work in your case? I don’t know. Maybe try the following command and let us know what the output looks like:

echo "${pip}"