安装Python3.6.4后,在使用numpy时报错RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibil
Posted Frankiee
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装Python3.6.4后,在使用numpy时报错RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibil相关的知识,希望对你有一定的参考价值。
原因:
因为安装numpy用的是 pip来安装的
pypi官方对于numpy的库已经升级了,但是升级后的版本与其他的库不匹配
所以报错
解决:
先把已经安装的numpy卸载: pip uninstall numpy
再安装低版本的numpy:
pip install -U numpy==1.14.5
以上是关于安装Python3.6.4后,在使用numpy时报错RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibil的主要内容,如果未能解决你的问题,请参考以下文章
centos7更改默认的python版本,安装python3.6.4