简体   繁体   English

Git 推 Heroku 被拒绝

[英]Git push Heroku rejected

I want to deploy my flask app to Heroku but the push rejected.我想将我的 flask 应用程序部署到 Heroku 但推送被拒绝。 Here is my requirements.txt, some of them are whl file which I store it locally这是我的 requirements.txt,其中一些是我在本地存储的 whl 文件

attrs==20.3.0
branca==0.4.2
certifi==2020.12.5
chardet==4.0.0
click==7.1.2
click-plugins==1.1.1
cligj==0.7.1
cycler==0.10.0
DateTime==4.3
decorator==4.4.2
descartes==1.1.0
GDAL @ file:///C:/Users/path/to/GDAL-3.2.2-cp39-cp39-win_amd64.whl
Fiona @ file:///C:/Users/path/to/Fiona-1.8.19-cp39-cp39-win_amd64.whl
Shapely @ file:///C:/Users/path/to/Shapely-1.7.1-cp39-cp39-win_amd64.whl
Flask==1.1.2
folium==0.12.1
geopandas==0.9.0
gunicorn==20.1.0
idna==2.10
itsdangerous==1.1.0
Jinja2==2.11.3
joblib==1.0.1
kiwisolver==1.3.1
MarkupSafe==1.1.1
matplotlib==3.4.1
munch==2.5.0
networkx==2.5.1
numpy==1.20.2
osmnx==1.0.1
...

here are the error这是错误

remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the buildpack default: python-3.9.4
remote:        To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.9.4
remote: -----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        ERROR: GDAL-3.2.2-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to {my-app-name}

I have also tried the 32 bit for the whl file but the push still rejected.我也尝试了 whl 文件的 32 位,但推送仍然被拒绝。 Is it because it installs the older version of pip?是不是因为它安装了旧版本的pip? If so, how can I update pip because it seems that every time I try git push, it always install the older version如果是这样,我该如何更新 pip 因为似乎每次我尝试 git 推送时,它总是安装旧版本

[SOLVED] I just need to delete the whl file from the requirements.txt, because when it install osmnx it also install its dependencies [已解决] 我只需要从 requirements.txt 中删除 whl 文件,因为当它安装 osmnx 时,它也会安装它的依赖项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM