a.py:

import numpy

pyre

a.py:1:0 Undefined import [21]: 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

2 Answers

1
Antony Hatchkins On

Ok, got it. Need to install numpy-stubs

-1
Lalana Chamika On

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.