a.py:1:0 Undefined import : Could not find a module corresponding to import `numpy`.
Although definitely I have numpy installed.
Environment: Ubuntu, python 3.7.1, pyre 0.0.22, numpy 1.16.2
Ok, got it. Need to install numpy-stubs
Seems like u havent installed numpy for the whole system
First you can use pip (the alternative Python package installer) to install numpy for the whole system:
sudo apt-get install python-pip
sudo pip install numpy scipy
Then give a restart and compile the python script.
If this didnt work please comment below.