小编uek*_*kyo的帖子

RuntimeError:针对API版本0xc编译的模块,但此版本的numpy为0xb

我正在尝试学习机器学习,但我无法解决以下错误.

[我的环境]

  • Mac High Sierra 10.13.2
  • Python3.4.5
  • Numpy1.13.3

[命令]

$ python3 -c "import jupyter, matplotlib, numpy, pandas, scipy, sklearn"
Run Code Online (Sandbox Code Playgroud)

[错误]

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
Traceback (most recent call last):
  File "/Users/uekyo/ml/env/lib/python3.4/site-packages/pandas/__init__.py", line 26, in <module>
    from pandas._libs import (hashtable as _hashtable,
  File "/Users/uekyo/ml/env/lib/python3.4/site-packages/pandas/_libs/__init__.py", line 4, in <module>
    from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime
  File "pandas/_libs/tslib.pyx", line 1, in init pandas._libs.tslib
ImportError: numpy.core.multiarray failed to import

During handling of …
Run Code Online (Sandbox Code Playgroud)

python numpy deep-learning tensorflow

11
推荐指数
2
解决办法
1万
查看次数

标签 统计

deep-learning ×1

numpy ×1

python ×1

tensorflow ×1