I can't import numpy in code node

I am trying to add a code node using python, but when i run the code"import numpy as np",
it return an error:‘packaging’ is included in the Pyodide distribution, but it is not installed. You can install it by calling: await micropip.install(“packaging”) in Python, or await pyodide.loadPackage(“packaging”) in JavaScript See Loading packages — Version 0.27.5 for more details.

Hello @Joy_Li

Open a separate workflow and test this suggestion below.

Remember to check the credentials and adjust according to your needs

If you find any part in Portuguese, translate it to your language, because I don’t speak English. So I need to take your message, translate it to Portuguese, understand the problem, see if I can help in any way, answer the question, translate it to English and then post it in the community. I wish you all the best!

The changes were the automatic installation of packages, improved error handling and removal of the Pyodide dependency
It also simplifies data generation, its return structuring.

If this suggestion solved your problem, mark my post as a solution (blue box with check mark) so that this ongoing discussion does not distract others who want to find the answer to the original question and click the heart. Thank you :+1: