On Thu, 7 Feb 2019 07:43:56 -0800, Ram Kanhirotentavida
<
rkanh...@gmail.com> declaimed the
following:
> File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>line 847, in _get_configuration_from_setup_py ('.py', 'U', 1))
> File "numpy/core/setup.py", line 13, in <module>
> import platform
> ImportError: No module named _build_utils.apple_accelerate
>
That still looks strange... Line 13 of numpy/core/setup does import
_build_utils, but the line is:
from numpy._build_utils.apple_accelerate import (
uses_accelerate_framework, get_sgemv_fix
)
"""
from __future__ import division, print_function
import os
import sys
import pickle
import copy
import warnings
import platform
from os.path import join
from numpy.distutils import log
from distutils.dep_util import newer
from distutils.sysconfig import get_config_var
from numpy._build_utils.apple_accelerate import (
uses_accelerate_framework, get_sgemv_fix
)
from numpy.compat import npy_load_module
"""
import platform is on line 8
I'd echo the other response: if you are installing for a system
provided Python -- use apt-get, as that should be a tested/good package,
whereas pip has to download a generic source tree and then run setup
functions to build anything needed locally (and apparently either the numpy
that pip is fetching doesn't have the _build_utils files, OR there is a
numpy already installed which doesn't have said file, but keeps pip from
downloading a different numpy.