首页 > 解决方案 > 试图推送到 Heroku——为什么我会得到这个?错误:找不到满足要求的版本 python-3.8.6

问题描述

非常简单的python应用程序。尝试从 git 推送到 Heroku 时得到这个:

git push heroku main
Enumerating objects: 38, done.
Counting objects: 100% (38/38), done.
Delta compression using up to 8 threads
Compressing objects: 100% (33/33), done.
Writing objects: 100% (38/38), 21.09 KiB | 5.27 MiB/s, done.
Total 38 (delta 5), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.8.6
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        ERROR: Could not find a version that satisfies the requirement python-3.8.6 (from -r /tmp/build_006a9333/requirements.txt (line 1)) (from versions: none)
remote:        ERROR: No matching distribution found for python-3.8.6 (from -r /tmp/build_006a9333/requirements.txt (line 1))
remote:  !     Push rejected, failed to compile Python app.
remote:

偏僻的: !推送失败的遥控器:!偏僻的: !## 警告 - 此代码的相同版本已经构建:09e26ac7b3791cd141f1df4ece7b18b6093229f8 远程:!偏僻的: !我们检测到您已从版本为 09e26ac7b3791cd141f1df4ece7b18b6093229f8 的远程源代码触发构建:!至少两次。这种行为的一个常见原因是试图从不同的分支部署代码。偏僻的: !偏僻的: !如果您在分支上开发并通过 git 进行部署,则必须运行:remote: ! 偏僻的: !git push heroku:主远程:!偏僻的: !本文详细介绍了该行为:远程:! https://devcenter.heroku.com/articles/duplicate-build-version 远程:远程:验证部署...远程:远程:!Push 被拒绝到 Peace-basin-40727。远程:到https://git.heroku.com/peaceful-basin-40727.git ![远程拒绝] main -> main (pre-receive hook denied) 错误:未能将一些参考推送到“https://git.heroku.com/peaceful-basin-40727.git”

标签: pythonheroku

解决方案


推荐阅读