how many "u"s can you find in:
subprocess.calledprocesserror: command '['/applications/slicer.app/contents/bin/../bin/pythonslicer', '-m', 'pip', 'install', 'psutil']' returned non-zero exit status 1.
somehow the slicerpython has not the required devel headers in the python environment. this may result in more packages not being able to install.
i haven’t had time to look into this in depth, but this error is not occurring in the most recent windows installer.
do you only have problems with psutil or with other packages, too?
have you installed python development packages that are needed for building python wheels?
i just installed the slicer nightly, then psutil is not installing, maybe a default installation of development packages is enough to solve this issue. but how to install them from slicer itself? is not like you have much options for the environment.
is it usual for python to build packages on macos? or does it happen only for psutil?
can other python distributions build psutil on your computer?
psutil needs to be built in every distro and in every os, it is the same for some fancy packages that use cython capabilities in general (mostly all the really cool ones ;).
psutil is not built from source on windows (downloaded from here) but maybe binary is not available for some linux/mac environments.
do you have issues with building other python packages from source on your computer, either in slicer or other python environments?
if the problem is only with psutil then i would consider it very low priority (as a medical image computing application should not need to use so low-level apis), but if this is a more general issue then it may worth a closer look.
i see that psutil has a nice abstraction for getting free memory, and that could be useful when working with large data (e.g. before loading a huge dataset). i’m not aware of other cross-platform options for that.
also it would be good to define which python package “just work” on all platforms and what ones require specific installation steps. i tried a python package the other day on mac and it failed to install due to a build issue even though i have a complete developer environment.
psutil has prebuilt wheels (available for windows) hosted on pypi, however no wheels for mac or linux which is why the wheel is having to be built.

user
The text includes 66 "u"s in total.
assistant