Numpy in Gh for R8

Hi folks,

I have python code for GH that needs numpy. Could you please point me to how I can get this package in R8?

I found this thread but it was a few versions ago.

Thanks a lot!

open a new python 3 component (or set a scripteditor component to python 3) and paste this in

# r: numpy

import numpy
1 Like

So simple :exploding_head:! Thanks very much for your help Japhy!

1 Like

Traceback (most recent call last):
File “rhinocode:///grasshopper/1/68254ed6-a8aa-4c24-81aa-996a45fa29e6/72178cd4-4eea-44d3-bb37-5c15c2ae2232”, line 1, in
File “C:\Users\tallu.rhinocode\py39-rh8\site-envs\default-7oeVr66U\numpy_init_.py”, line 143, in
from numpy.config import show as show_config
File “C:\Users\tallu.rhinocode\py39-rh8\site-envs\default-7oeVr66U\numpy_config_.py”, line 4, in
from numpy._core.multiarray_umath import (
File "C:\Users\tallu.rhinocode\py39-rh8\site-envs\default-7oeVr66U\numpy_core_init
.py", line 23, in
from . import multiarray
File “C:\Users\tallu.rhinocode\py39-rh8\site-envs\default-7oeVr66U\numpy_core\multiarray.py”, line 10, in
from . import overrides
File “C:\Users\tallu.rhinocode\py39-rh8\site-envs\default-7oeVr66U\numpy_core\overrides.py”, line 8, in
from numpy._core._multiarray_umath import (
RuntimeError: CPU dispatcher tracer already initlized

Has anyone faced this issue with numpy in Rhino8? If yes, can you help me resolve? It shoots up everytime import numpy