开发者社区 > 云原生 > Serverless > 正文

函数计算部署flask框架的python 服务,在云端运行代码报错。但是pip list 查看num

函数计算部署flask框架的python 服务,在云端运行代码报错。但是pip list 查看numpy都是安装的,这是怎么回事? Please note and check the following:

  • The Python version is: Python3.9 from "/usr/local/bin/python"
  • The NumPy version is: "1.24.2"

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'

展开
收起
Java工程师 2023-02-08 18:13:00 858 0
2 条回答
写回答
取消 提交回答
  • 可能是由于Python和NumPy的版本不兼容导致的

    2023-02-08 19:20:54
    赞同 展开评论 打赏
  • 挂载这个公共层试下 Python39-SciPy1x 函数配置-编辑层

    回答4.png

    此答案来自钉钉群“阿里函数计算官网客户"

    2023-02-08 18:28:01
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    All in Serverless 阿里云核心产品全面升级 立即下载
    AIGC 浪潮之上,森马的 Serverless 实践之旅 立即下载
    极氪大数据 Serverless 应用实践 立即下载