繁体   English   中英

如何在 Elastic Beanstalk 上安装 numpy?

[英]How to install numpy on Elastic Beanstalk?

I am using Elastic Beanstalk to host my spring boot application (generating jar package based on maven), in my spring boot project I need to read python script, the python script contains numpy and matplotlib. 它在本地运行良好。 Elastic Beanstalk 帮助我运行 python 脚本,但 Elastic Beanstalk 缺少 numpy 和 matplotlib 并且我在运行时收到此错误:

Traceback (most recent call last): File "/var/app/current/application.py", line 1, in import numpy as np ModuleNotFoundError: No module named 'numpy'

谁能告诉我如何在 Elastic Beanstalk 上安装 numpy 和 matplotlib ?

安装包在包文档中解释。 基本上,您必须使用描述要安装的软件包的文件创建.ebextensions文件夹。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM