解决import tensorflow :RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IOT_victor/article/details/82958577

问题描述

pip install tensorflow-1.6.0-cp35-cp35m-win_amd64.whl

安装后import tensorflow as tf时,报如下错误

RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility

解决方法

①报的是有关numpy的warning,查看本机numpy版本此时为1.15.0

python
import numpy as np
np.__version__

②重装更新的版本可解决此问题

pip uninstall numpy
pip install numpy==1.15.1

或者,一键式更新安装

pip install -U numpy

③若中途需更新pip版本

④import tensorflow成功

猜你喜欢

转载自blog.csdn.net/IOT_victor/article/details/82958577