簡體   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