![](/img/trans.png)
[英]Django Web App Heroku Deployement : No matching distribution found for decouple==0.0.7
[英]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:
根據文檔,不會安裝具有不受支持的依賴項且不提供許多輪子的軟件包。 有解決方法嗎?
問題是 package 名稱statsmodel
。
ERROR: Could not find a version that satisfies the requirement statsmodel
package 稱為statsmodels
。 你忘了以s
結尾。 請參閱安裝文檔
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.