Chapter 4: nodes-vagrant-env provisioning error

When trying to set the nodes-vagrant-env machines (i.e. doing a “vagrant up”) I get an error occurring in the command: sudo pip install psutil from the install_mtools function of the provisioning file.

It appears the error relates to not being able to find the “python.h” file required for the compilation.

I managed to fix this (somehow for a noob!) by adding the line “sudo apt-get install -y python3-dev” (immediately after the python3 install) in the install_python3 function of the provision file.

This seemed to fix the problem for me in case anyone else out there runs into the same thing!


1 Like