pydata / numexpr

Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
https://numexpr.readthedocs.io/en/latest/user_guide.html
MIT License
2.23k stars 210 forks source link

ModuleNotFoundError: No module named 'numexpr.interpreter' #438

Closed Jeffer1980 closed 1 year ago

Jeffer1980 commented 1 year ago

Hi,

I'm getting the following error when trying to import numexpr:

from numexpr.interpreter import MAX_THREADS, use_vml, __BLOCK_SIZE1__

ModuleNotFoundError: No module named 'numexpr.interpreter'

Python version 3.10.11 Numexpr 2.8.4

robbmcleod commented 1 year ago

Typically this happens when people do something like this:

git clone https://github.com/pydata/numexpr.git
cd numexpr
pip install .
python -ic "import numexpr"

Because then the local directory numexpr trumps the one in site-packages, and of course the interpreter.pyd/so file isn't there in the local directory.

robbmcleod commented 1 year ago

Closing as we haven't heard back from the reporter.