You are hitting a long outstanding python bug here, see the following references:
I added this as an answer, as this seems to ...
Read the wiki at the pyenv project's repo on GitHub. Common build problems from pyenv wiki
Make sure to follow this guidance for your platform before any troubleshooting.
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
This is far too broad a topic to go into in great detail here, but as a quick outline, you will need:
some sort of shared storage (e.g. NFS) so that all machines have access to the scripts AND the data.
a job scheduler and resource/workdload manager such as slurm
possibly some kind of message passing library (like mpi4py) if your python processes need to ...
I've always found that when installing Mayavi with Anaconda, it's best to use conda rather than pip no matter the distribution. This will install it via the Anaconda repos.
conda install -c anaconda mayavi
That's assuming you have the bin directory of Anaconda prepended to your path. The -c anaconda switch tells it to install Mayavi from the Anaconda repo....