Problem
I am trying to install psutil using pip so I ran pip install psutil
but I receive the following error message:
Failed building wheel for psutil
Running setup.py clean for psutil
What I have tried
It seems like the problem is occurring during setup.py: Building wheel for psutil (setup.py) ... error
.
I have tried running :
xcode-select --install
but I get the following error message:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I have also tried:
sudo xcode-select --switch /Library/Developer/CommandLineTools
and
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Both work fine but even after restarting the terminal, I see no change.
And finally, I have tried running:
sudo xcode-select --reset
Which also makes no difference.