# Paraview 5.9.0 cannot find Matplotlib.

**URL:** https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702
**Category:** ParaView Support
**Tags:** python
**Created:** [March 15, 2021, 12:51pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702 "2021-03-15T12:51:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Andythe\_great](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andythe_great/32/6126_2.png) [@Andythe\_great](https://discourse.paraview.org/u/Andythe_great)
#### Post date: [March 15, 2021, 12:51pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702/1 "2021-03-15T12:51:33Z")

</div>

I install matplotlib but, Paraview cannot find matplotlib 2.6.1.  
Matplotlib exist in the similar path as numpy.

```auto
/app/lib/python3.8/site-packages/matplotlib

```

Are there compile flags or settings I can make Paraview find matplotlib?

Relate: [I Flatpak Paraview, any thought? - #2 by Andythe\_great](https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698/2)

Thanks.

> ```
> Client Information:
> Version: 5.9.0
> VTK Version: 
> Qt Version: 5.15.2
> vtkIdType size: 64bits
> Embedded Python: On
> Python Library Path: /usr/lib/python3.8
> Python Library Version: 3.8.8 (default, Nov 10 2011, 15:00:00) [GCC 10.2.0]
> Python Numpy Support: On
> Python Numpy Path: /app/lib/python3.8/site-packages/numpy
> Python Numpy Version: 1.20.1
> Python Matplotlib Support: Off
> Python Testing: Off
> MPI Enabled: On
> Disable Registry: Off
> Test Directory: 
> Data Directory: 
> OpenGL Vendor: Intel Open Source Technology Center
> OpenGL Version: 4.2 (Core Profile) Mesa 20.3.4 (git-6d8c68603f)
> OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
> 
> Connection Information:
> Remote Connection: No
> 
> ```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 15, 2021, 3:05pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702/2 "2021-03-15T15:05:25Z")

</div>

You need to enable `VTK_MODULE_ENABLE_VTK_RenderingMatplotlib` cmake option.

Edit: incorrect, see below.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [March 15, 2021, 3:09pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702/3 "2021-03-15T15:09:11Z")

</div>

enabling the module should not affect if ParaView reports matplotlib is found. Try calling `import matplotlib` in the Python shell in ParaView or `pvpython`. I suspect it’s failing.

---

<div class="post-metadata">

### Author: ![Andythe\_great](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andythe_great/32/6126_2.png) [@Andythe\_great](https://discourse.paraview.org/u/Andythe_great)
#### Post date: [March 15, 2021, 4:54pm UTC](https://discourse.paraview.org/t/paraview-5-9-0-cannot-find-matplotlib/6702/4 "2021-03-15T16:54:17Z")

</div>

Thank you. It is missing pyparsing.

Also if you don’t mind, could you give some comments on my Flatpak for Paraview?

> [@I Flatpak Paraview, any thought?](https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698/2):
>
> Anyone know where am I support to put the example data?
