In this section I explain how to install Mayavi 4.5.1 (development version) for Python 3 on Ubuntu 17.10 by using
PyQt 5.
To use Mayavi 4.5.0 python package, the version 4 of PyQt is needed: version 5 is not supported in this version of Mayavi. To use PyQt version 5 one has to install Mayavi 4.5.1 (development version on march 2018), pyface (>= 5.2.0) and traitsui (>=5.2.0)
Firstly we install (as root) python3, python3-pip and python3-env Ubuntu packages. The last one will be used to create Python virtual environments.
As first step, we create a virtual environment in /python-env/python3 directory
We can now load this virtual environment: All the following commands will be execute in this environment. I have somme trouble when using pip3 for installing some packages:pip3 install VTK --no-cache-dir pip3 install pyQt5 --no-cache-dir pip3 install mayavi --no-cache-dir
pip3 install git+https://github.com/enthought/mayavi.git pip3 install git+https://github.com/enthought/pyface.git pip3 install git+https://github.com/enthought/traitsui.git
wget http://www.math.univ-paris13.fr/~cuvelier/docs/Informatique/Python/mayavi_boy.py python3 mayavi_boy.py