Could not build wheels for psutil, which is required to install pyproject.toml-based projects

Viewed 5462

I am trying to incorporate python with Jupiter notebook in vs code. while test-running a code with "#%%" command, I have recieved an error stating:

Info 16:54:47: ERROR: Failed building wheel for psutil

Info 16:54:47: Failed to build psutil

Info 16:54:47: ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects

What should I do to solve the issue and complete the incorporation, please?

1 Answers

Do you also have the error reading:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun. ?

If so, download xcode developer tools either by running:

xcode-select --install (Only the tools, not all of xcode)

or go to:

https://developer.apple.com/download/all/

and download Command Line Tools for xcode.

Hope this helps. I had the same errors as you and downloading command line tools fixed them.

Related