簡體   English   中英

Git 推 Heroku 被拒絕

[英]Git push Heroku rejected

我想將我的 flask 應用程序部署到 Heroku 但推送被拒絕。 這是我的 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
...

這是錯誤

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}

我也嘗試了 whl 文件的 32 位,但推送仍然被拒絕。 是不是因為它安裝了舊版本的pip? 如果是這樣,我該如何更新 pip 因為似乎每次我嘗試 git 推送時,它總是安裝舊版本

[已解決] 我只需要從 requirements.txt 中刪除 whl 文件,因為當它安裝 osmnx 時,它也會安裝它的依賴項

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM