简体   繁体   English

Heroku 部署失败 | 既没有找到“setup.py”也没有找到“pyproject.toml”。 有谁知道如何解决这一问题?

[英]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.

相关问题 conda-build 错误:目录 '.' 不可安装。 未找到“setup.py”和“pyproject.toml” - conda-build error: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found 目录 '。' 不可安装。 未找到“setup.py”和“pyproject.toml” - Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found 错误:目录不可安装。 “setup.py”和“pyproject.toml”都不是 - ERROR: Directory is not installable. Neither 'setup.py' nor 'pyproject.toml' 关于 pyproject.toml 与 setup.py 的问题 - Questions on pyproject.toml vs setup.py 如何将 setup.py 替换为 pyproject.toml 以获得本机 C 构建依赖项? - How to replace setup.py with a pyproject.toml for a native C build dependency? 从 setup.py 迁移到 pyproject.toml:如何指定 package 名称? - Migration from setup.py to pyproject.toml: how to specify package name? 如何构建符合 PEP 517 的 C 扩展,即使用 pyproject.toml 而不是 setup.py? - How to build a C extension in keeping with PEP 517, i.e. with pyproject.toml instead of setup.py? 如何从 setup.py 中读取来自 pyproject.toml 的项目依赖项,以避免在两个文件中重复信息? - How do I read project dependencies from pyproject.toml from my setup.py, to avoid duplicating the information in both files? setuptools pyproject.toml 相当于`python setup.py clean --all` - setuptools pyproject.toml equivalent to `python setup.py clean --all` Pytest cov 不读取 pyproject.toml - Pytest cov does not read pyproject.toml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM