- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I installed intel-numpy using homebrew python3 and
pip3 install intel-numpy
This is what is installed under pip list
Package Version
------------ ---------
icc-rt 16.0.3
intel-numpy 1.13.3.10
intel-openmp 2018.0.0
mkl 2018.0.0
mkl-fft 1.0.0.17
mkl-random 1.0.0.8
numpy 1.13.3
pip 10.0.1
setuptools 39.2.0
wheel 0.31.1
But importing numpy fails with this message
$ python3
Python 3.6.5 (default, Apr 25 2018, 14:23:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in
from . import multiarray
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Symbol not found: _main
Referenced from: /usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so
Expected in: flat namespace
in /usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/numpy/__init__.py", line 158, in
from . import add_newdocs
File "/usr/local/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/local/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in
from .type_check import *
File "/usr/local/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in
import numpy.core.numeric as _nx
File "/usr/local/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: dlopen(/usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Symbol not found: _main
Referenced from: /usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so
Expected in: flat namespace
in /usr/local/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so
How can this be fixed?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pheon,
Which macOS version are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running High Sierra Version 10.13.4

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page