How to install python libraries so Code can access on Windows 11

Hi,

I’ve got Code running on my Windows 11 machine. I can paste in sample code from the tutorials and most of them work so I know that Code sees the Python engine installation and can execute properly Python scripts properly. However, one of the examples tries to import matplotlib. When I run i get a "ModuleNotFoundError: No module named ‘matplotlib’ error. The next line says “Executing: Python 1…(11) ” How do I get the matplotlib installed?

BTW, if I open a Command window and type in Python, the Python interpreter powers up. If I type into the >> prompt “import matplotlib” the Python interpreter outside of Omniverse runs and find the library. The problem is calling the matplotlib from inside of Code.

Thanks in advance for any help

Hi @user7602. You can do this with pipapi. Here’s video tutorial on it: PIP API — Omniverse Extensions documentation

Mati, wow you are fast! Thanks.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.