conda create -n oldqt python=3 pyqt=4
- Switch to the newly created env:
activate oldqt
for Windows OSsource activate oldqt
for Mac/linux OS - install mayavi using the menpo package installer:
conda install -c menpo mayavi
- Use the
oldqt
env to run your python mayavi scripts, and include the snippet below at the top of these scripts to ensure that a valid QT API for mayavi is specified:
import os
os.environ["QT_API"] = "pyqt"
Ref.: https://davidyaowp.wordpress.com/2017/02/13/install-mayavi-in-anaconda-for-python-3-5/