numpy报错:ValueError: numpy.ufunc size changed, may indicate binary incompatibility.
生活随笔
收集整理的這篇文章主要介紹了
numpy报错:ValueError: numpy.ufunc size changed, may indicate binary incompatibility.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天使用numpy結合sklearn繪制曲線的時候發現抱錯:
可能是之前安裝tensorflow的時候它自動安裝了老版本的,查看當前numpy版本:
C:\Users\HuaWei>pip install numpy Requirement already satisfied: numpy in d:\yolov3_tensorflow\python\lib\site-packages (1.15.1)C:\Users\HuaWei>卸載numpy重新安裝一下試試:
C:\Users\HuaWei>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting numpyDownloading https://pypi.tuna.tsinghua.edu.cn/packages/53/74/b997e4c7b4abc668e99f4c3dba87ee2c6f7559319af756cc1ede37665a8d/numpy-1.18.1-cp36-cp36m-win_amd64.whl (12.8 MB)|████████████████████████████████| 12.8 MB 3.3 MB/s Installing collected packages: numpy Successfully installed numpy-1.18.1C:\Users\HuaWei>完美,沒再報錯了,但是就是不知道tensorflow那邊會怎么樣。。。
參考文章:Python導入包時出現“numpy.ufunc size changed, may indicate binary incompatibility”錯誤
總結
以上是生活随笔為你收集整理的numpy报错:ValueError: numpy.ufunc size changed, may indicate binary incompatibility.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 绘制不同光照条件下识别率多项式拟合曲线图
- 下一篇: python 列表、元组在性能上的区别