Nuitka: Numpy (from Conda) - Missing libmkl_*.so in Standalone

OS: Ubuntu 16.04 python=3.7.3 nuitka==0.6.4 conda 4.6.14

conda install numpy

#main.py import numpy as np

#use python -m nuitka --follow-imports --standalone main.py

Things I tried: --plugin-enable=numpy --include-plugin-directory=/home/user/anaconda3/envs/env/lib

Error when running the standalone: Intel MKL FATAL ERROR: Cannot load libmkl_core.so.

Manually copying all libmkl_*.so files resolves the issue

Related issue: 190

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

I think the recent Nuitka versions already contains this fix (0.6.4 or 0.6.5).

Update for my previous post:

* vanilla PIP numpy Linux and Windows (only OpenBlas shared lib is used)

* MKL libraries included in `numpy.core`

* numpy+MKL Anaconda distro for Linux and Windows

So the new numpy plugin should work in any of the known cases …