You need to run this command inside of the built-in terminal in VS Code.
pip3 install pyinputplus
If you run this in your mac terminal it will only install the package locally. VS Code runs in it's own virtual environment.
Let me know if that helps!