【发布时间】:2020-03-25 01:22:56
【问题描述】:
每次我尝试部署到应用引擎时,都会遇到 ta-lib 的构建失败。日志记录有几行,如:
ERROR: Command errored out with exit status 1
ModuleNotFoundError: No module named 'numpy'
在使用 docker 和 ta-lib wheel 之前,我已经在应用引擎上灵活部署,但我无法让轮子在标准环境下工作,所以直接在 requirements.txt 中尝试 ta-lib。我的项目在本地运行良好。 我想可能是因为 requirements.txt 没有先安装 Numpy 之类的。我的 app.yaml 很简单:
runtime: python37
entrypoint: gunicorn -b :$PORT main:app
是否可以在应用引擎标准环境 Python 3.7 上使用 ta-lib?
任何帮助将不胜感激。
更新:
这是我的 requirements.txt 文件:
numpy==1.18.1
pandas==1.0.1
Flask
marshmallow
pytz
requests
python-dateutil
flask-cors
python-dotenv
python-jose-cryptodome
six
cryptocompare
ta-lib==0.4.17
【问题讨论】:
-
能否附上您的 requirements.txt 文件?
-
感谢@NibrassH 的评论。我已经添加了文件。
标签: google-app-engine python-3.7 ta-lib