a.py:
import numpy
pyre
a.py:1:0 Undefined import [21]: Could not find a module corresponding to import `numpy`.
尽管我有安装numpy,但是出现了一些问题。 环境:Ubuntu,Python 3.7.1,Pyre 0.0.22,NumPy 1.16.2。
a.py:
import numpy
pyre
a.py:1:0 Undefined import [21]: Could not find a module corresponding to import `numpy`.
pyre
是一个静态分析工具,旨在编写更好的程序。如何编写更好的程序与编程无关? - Antony Hatchkinsvenv/bin
中是否存在numpy。你的venv可能正在聪明地从全局安装中带来缓存的numpy。因此,当Pyre读取你的venv/bin
时会找不到numpy。 - Prageeth Jayathissa