簡體   English   中英

Python 應用程序部署到 Heroku:找不到匹配的分布

[英]Python app deployed to Heroku : No matching distribution found

我使用 dash 框架構建了一個應用程序,並嘗試將該應用程序部署到 heroku。 我的requirements.txt看起來像這樣:

   pandas
   dash
   Flask
   sklearn
   ... 
   ...
   ...
   sympy
   statsmodel

安裝sympy和/或statsmodel時出現錯誤

Collecting sympy
remote:          Downloading sympy-1.7.1-py3-none-any.whl (5.9 MB)
remote:        ERROR: Could not find a version that satisfies the requirement statsmodel (from -r /tmp/build_800c2283/requirements.txt (line 18)) (from versions: none)
remote:        ERROR: No matching distribution found for statsmodel (from -r /tmp/build_800c2283/requirements.txt (line 18))
remote:  !     Push rejected, failed to compile Python app.
remote: 

根據文檔,不會安裝具有不受支持的依賴項且不提供許多輪子的軟件包。 有解決方法嗎?

https://devcenter.heroku.com/articles/python-pip

問題是 package 名稱statsmodel

ERROR: Could not find a version that satisfies the requirement statsmodel

package 稱為statsmodels 你忘了以s結尾。 請參閱安裝文檔

暫無
暫無

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

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