5

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

Antony Hatchkins
  • 31,947
  • 10
  • 111
  • 111
  • `pyre` is a static analysis tool aimed to write better programs. How is writing better programs not about programming? – Antony Hatchkins Apr 23 '19 at 08:04
  • Have you checked that numpy exists within your `venv/bin`. It might be that your venv is being clever and bringing a cached numpy from your global install. So when Pyre reads your `venv/bin` it can't find numpy – Prageeth Jayathissa Aug 25 '20 at 07:20

1 Answers1

3

Ok, got it. Need to install numpy-stubs

Antony Hatchkins
  • 31,947
  • 10
  • 111
  • 111