我在运行python脚本时遇到此错误,我在Linux Alpine docker中拥有python设置,我使用的是python 2.7,错误是:
ImportError: C extension: umpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
我的环境有numpy = 1.12.1。
似乎与here一样。您可以通过谷歌搜索错误消息找到这些答案。
您的numpy版本似乎车轮坏了。您可以安装较新版本的numpy吗?