Pycharm is likely running in its own separate environment. When you run pip install pyinputplus into your command prompt it is installing the package locally.
pip install pyinputplus
Instead, try pip installing inside of the terminal in pycharm.