[英]Heroku fails to deploy | neither 'setup.py' nor 'pyproject.toml' found. Does anyone know how to fix this?
I'm encountering some errors when I want to deploy my model to heroku. It is said that neither 'setup.py' nor 'pyproject.toml' found and I don't have any idea how to fix this.当我想将我的 model 部署到 heroku 时遇到了一些错误。据说“setup.py”和“pyproject.toml”都找不到,我不知道如何解决这个问题。
-----> Using Python version specified in runtime.txt
!
! A Python security update is available! Upgrade as soon as possible to: python-3.10.7
! See: https://devcenter.heroku.com/articles/python-runtimes
!
-----> Installing python-3.10.4
-----> Installing pip 22.2.2, setuptools 63.4.3 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Obtaining slim from git+https://github.com/tensorflow/models@487c4b2a13a4b34f3b6b0ac5715b05e275306853#egg=slim&subdirectory=researchslim (from -r /tmp/build_36246477/requirements.txt (line 82))
Cloning https://github.com/tensorflow/models (to revision 487c4b2a13a4b34f3b6b0ac5715b05e275306853) to /app/.heroku/src/slim
Running command git clone --filter=blob:none --quiet https://github.com/tensorflow/models /app/.heroku/src/slim
Running command git rev-parse -q --verify 'sha^487c4b2a13a4b34f3b6b0ac5715b05e275306853'
Running command git fetch -q https://github.com/tensorflow/models 487c4b2a13a4b34f3b6b0ac5715b05e275306853
Running command git checkout -q 487c4b2a13a4b34f3b6b0ac5715b05e275306853
Resolved https://github.com/tensorflow/models to commit 487c4b2a13a4b34f3b6b0ac5715b05e275306853
ERROR: slim from git+https://github.com/tensorflow/models@487c4b2a13a4b34f3b6b0ac5715b05e275306853#egg=slim&subdirectory=researchslim (from -r /tmp/build_36246477/requirements.txt (line 82)) does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
! Push rejected, failed to compile Python app.
! Push failed
You can't build pip package from tensorflow/models main directory.您不能从tensorflow/models主目录构建 pip package。 Check installation process
检查安装过程
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.