在herooku上构建失败



尝试在Heroku上部署一个python应用程序,但是构建失败,日志如下:

Building wheels for collected packages: numpy, pandas, scikit_learn, tornado, blinker, validators
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1133 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Building wheel for pandas (pyproject.toml): started
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

下面是requirements.txt文件的样子:

gspread<=5.4.0
numpy<=1.19.2
oauth2client<=4.1.3
pandas<=1.4.2
scikit_learn<=0.24.1
streamlit==1.10.0

感谢您的帮助。

我解决这个问题的方法就是不部署到Heroku。考虑到作品本身是基于流光的。直接将应用程序部署在没有单一问题的streamlite - cloud上。

不确定这是否完全符合答案。