Using matplotlib

Trying to use matplotlib within TouchDesigner (Script SOP).

So I’ve installed it in the cmd line using pip.

But I seem to recall that you can have more than one version of Python installed on your system and that TD won’t necessarily use the latest version.

If I do

$python --version

I get

Python 3.7.7

Can anyone tell me

1- How to get the Python version from within TD?

and

2- How to properly install matplotlib so TD can use it?

  1. If you open the textport the python version will be displayed.

  2. Check my online library and my td pip module. Makes it super easy to install packages from pip.