"matplotlib" library is outdated, could we load external one instead?

In MacOS ParaView 5.7.0:

import matplotlib; matplotlib.__version__

'1.1.1'

From PYTHONPATH:

python2.7 -c "import matplotlib; print (matplotlib.__version__)"

2.2.4

I tried to change import paths order by ParaView segfaults in this case. Some suggestions?