我正在尝试构建一个Python应用程序(使用streamlit),Compiled slug size: 664M is too large (max is 500M).但是,当我跑
Compiled slug size: 664M is too large (max is 500M).
heroku run bash -a pitchcast $ du -ha --max-depth 1 /app
唯一显示出来的是
4.0K /app
大文件在哪里?如何减少它们?
bfrts1fy1#
回答我自己的问题:看起来大小是由Python库引起的,特别是tensorflow。从tensorflow切换到tensorflow-cpu使其小于500M
tensorflow
tensorflow-cpu
1条答案
按热度按时间bfrts1fy1#
回答我自己的问题:看起来大小是由Python库引起的,特别是
tensorflow
。从tensorflow
切换到tensorflow-cpu
使其小于500M