admin管理员组

文章数量:1550527

解决RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility.

使用jupyter notbook引入如下三个模块时有警告:
\ProgramData\Anaconda3\lib\importlib_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject return f(*args, **kwds)

import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt

但是之前引入前两个模块没有警告或错误!

解决方式:

  1. 重装numpy,打开指令窗口输入 pip install -U numpy -i https://pypi.tuna.tsinghua.edu/simple/
  2. 或者降级numpy版本:
    pip uninstall numpy
    pip install numpy==1.xx.x -i https://pypi.tuna.tsinghua.edu/simple/

本文标签: bootstrappylibimportlibsize