ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 48 from C head

问题描述:运行python脚本时出现以上问题

网上查到的解决方法:通过pip install -U numpy升级版本

由于运行的其他库存在版本依赖,不能通过升级numpy版本来解决此问题。

在numpy的官网和scipy的官网查到版本发布信息如下:

NumPy 1.21.6 (release notes) – 12 Apr 2022.

NumPy 1.22.3 (release notes) – 7 Mar 2022.

NumPy 1.22.2 (release notes) – 3 Feb 2022.

NumPy 1.22.1 (release notes) – 14 Jan 2022.

NumPy 1.22.0 (release notes) – 31 Dec 2021.

NumPy 1.21.5 (release notes) – 19 Dec 2021.

NumPy 1.21.0 (release notes) – 22 Jun 2021.

NumPy 1.20.3 (release notes) – 10 May 2021.

NumPy 1.20.0 (release notes) – 30 Jan 2021.

NumPy 1.19.5 (release notes) – 5 Jan 2021.

NumPy 1.19.0 (release notes) – 20 Jun 2020.

NumPy 1.18.4 (release notes) – 3 May 2020.

NumPy 1.17.5 (release notes) – 1 Jan 2020.

NumPy 1.18.0 (release notes) – 22 Dec 2019.

NumPy 1.17.0 (release notes) – 26 Jul 2019.

NumPy 1.16.0 (release notes) – 14 Jan 2019.

NumPy 1.15.0 (release notes) – 23 Jul 2018.

NumPy 1.14.0 (release notes) – 7 Jan 2018.

SciPy 1.8.0 (release notes) – 2022-02-05.

SciPy 1.7.3 (release notes) – 2021-11-24.

SciPy 1.7.2 (release notes) – 2021-11-05.

SciPy 1.7.1 (release notes) – 2021-08-01.

SciPy 1.7.0 (release notes) – 2021-06-20.

SciPy 1.6.3 (release notes) – 2021-04-25.

SciPy 1.6.2 (release notes) – 2021-03-24.

SciPy 1.6.1 (release notes) – 2021-02-17.

SciPy 1.6.0 (release notes) – 2020-12-31.

SciPy 1.5.0 (release notes) – 2020-06-21.

SciPy 1.5.4 (release notes) – 2020-11-04.

SciPy 1.5.3 (release notes) – 2020-10-17.

SciPy 1.5.2 (release notes) – 2020-07-23.

SciPy 1.5.1 (release notes) – 2020-07-04.

SciPy 1.2.3 (release notes) – 2020-01-21.

SciPy 1.4.1 (release notes) – 2019-12-19.

SciPy 1.4.0 (release notes) – 2019-12-16.

SciPy 1.3.2 (release notes) – 2019-11-09.

SciPy 1.3.1 (release notes) – 2019-08-08.

SciPy 1.3.0 (release notes) – 2019-05-17.

SciPy 1.2.2 (release notes) – 2019-06-06.

SciPy 1.2.1 (release notes) – 2019-02-08.

SciPy 1.2.0 (release notes) – 2018-12-17.

SciPy 0.19.1 (release notes) – 2017-06-21.

SciPy 0.19.0 (release notes) – 2017-03-09.

SciPy 1.1.0 (release notes) – 2018-05-05.

SciPy 1.0.0 (release notes) – 2017-10-25.

SciPy 0.18.1 (release notes) – 2016-09-19.

SciPy 0.18.0 (release notes) – 2016-07-25.

SciPy 0.17.1 (release notes) – 2016-05-12.

SciPy 0.17.0 (release notes) – 2016-01-23.

SciPy 0.16.1 (release notes) – 2015-10-24.

SciPy 0.16.0 (release notes) – 2015-07-23.

SciPy 0.15.1 (release notes) – 2015-01-18.

SciPy 0.15.0 (release notes) – 2015-01-11.

SciPy 0.14.1 (release notes) – 2014-12-30.

SciPy 0.14.0 (release notes) – 2014-05-03.

SciPy 0.13.3 (release notes) – 2014-02-04.

SciPy 0.13.2 (release notes) – 2013-12-08.

SciPy 0.12.0 (release notes) – 2013-04-07.

SciPy 0.11.0 (release notes)– 2012-09-25.

Original: https://blog.csdn.net/orchisan/article/details/124817642
Author: orchisan
Title: ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 48 from C head

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/758927/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • Shell的正则表达式入门、常规匹配、特殊字符:

    文章目录 1.正则表达式入门 * 1.1常规匹配 1.2常用特殊字符 – 1.2.1特殊字符:^ 1.2.2特殊字符:$ 1.2.3特殊字符:. 1.2.4特殊字符:*…

    Python 2023年11月10日
    071
  • k8s-Pod调度

    Deployment全自动调度 NodeSelector定向调度 NodeAffinity亲和性 PodAffinity-Pod亲和性与互斥性 污点和容忍度 DaemonSet J…

    Python 2023年10月23日
    049
  • python之numpy库的应用

    numpy是由c语言编写的,运行速度比python 循环快很多 在数据处理的过程中,遇到使用 python for循环实现一些向量化,矩阵化操作的时候,要优先考虑用numpy 1 …

    Python 2023年8月27日
    078
  • Python 将两个三维模型(obj)合成一个三维模型(obj)

    本文主要针对想要将两个obj保存的三维模型合成一个三维模型即obj文件保存。这样就可以同时观察并对比两个三维模型。Trimesh是对三维网格模型处理十分好用的库,本次代码即基于此库…

    Python 2023年8月25日
    057
  • 干货 | 一文搞定 pytest 自动化测试框架(二)

    在上一篇文章中分享了 pytest 的基本用法,本文进一步介绍 pytest 的其他实用特性和进阶技巧。pytest fixturespytest 中可以使用 @pytest.fi…

    Python 2023年9月15日
    033
  • scrapy模拟登录与中间件

    看完路飞学学诚的课想弄点笔记以防自己以后忘了翻翻笔记。 ## 一. Scrapy处理cookie 处理cookie方案一 2. 方案二, 完成登录过程. 二. Scrapy的中间件…

    Python 2023年10月4日
    032
  • React实现一个简易版Swiper

    背景 最近在公司内部进行一个引导配置系统的开发中,需要实现一个 多图轮播的功能。到这时很多同学会说了,”那你直接用 swiper不就好了吗?”。但其实是,因…

    Python 2023年10月17日
    059
  • 基于Python+MySQL的图书管理系统

    目录 前言一、开发环境与开发工具二、系统需求分析三、系统功能分析四、数据库设计1、数据库概念结构设计(1)数据流程图(2)系统ER图2、数据库逻辑结构设计3、数据库物理结构设计五、…

    Python 2023年7月31日
    055
  • Unity3D教程:游戏开发算法-动态规划

    经常会遇到复杂问题不能简单地分解成几个子问题,而会分解出一系列的子问题。简单地采用把大问题分解成子问题,并综合子问题的解导出大问题的解的方法,问题求解耗时会按问题规模呈幂级数增加。…

    Python 2023年10月7日
    034
  • Python+Socket实现多人聊天室,功能:好友聊天、群聊、图片、表情、文件等

    一、项目简介 本项目主要基于python实现的多人聊天室,主要的功能如下: 登录注册 添加好友 与好友进行私聊 创建群聊 邀请/申请加入群聊 聊天发送图片 聊天发送表情 聊天发送文…

    Python 2023年9月18日
    052
  • android stdio开发抖音自动点赞案例

    404. 抱歉,您访问的资源不存在。 可能是网址有误,或者对应的内容被删除,或者处于私有状态。 代码改变世界,联系邮箱 contact@cnblogs.com 园子的商业化努力-困…

    Python 2023年6月12日
    071
  • CMU11785 Intro2DL HW0p1-fundamentals

    Colab安装旧版pytorch+numpy:(记得要restart) 2.Colab连接google账号: Google colab使用教学 – xiaowei的文章…

    Python 2023年8月29日
    061
  • tensor学习 1 -tensor格式

    1、tf.constant 创建一个常量 2、tf.range 创建一个序列 tf.rang(开始,结束,步长)开始 Original: https://blog.csdn.net…

    Python 2023年8月26日
    049
  • 参数化_PyTest:参数化简介

    使用参数化功能为Python软件包编写非常简洁的单元测试的指南。 第一部分将说明随附软件包的结构以及如何在您的系统上进行设置。 如果您只想查看PyTest中的参数化示例,则可以直接…

    Python 2023年9月14日
    038
  • 【2022-08-29】python前端开发(六)

    python前端开发(六) $("#id").next() $("#id").nextAll() $("#id").ne…

    Python 2023年6月11日
    078
  • 数据分析 pandas and matplotlib详细学习(3)———— 数据处理(2022.7.16)

    1.1.数据的整体情况查看 在数据中,从小学开始,我们就知道有平均数,中位数等,这些都是数据重要的特征,而在DataFrame中,使用describe就可以获取信息,实例如下: i…

    Python 2023年8月9日
    041
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球