For anyone else having the error with building psutil while installing the datahub cli I found that the python you're using matters (not just the version) - switching to the python from
python.org solved the problem (my default python3 was coming from a MinGW installation, causing the issue)