首页 > 解决方案 > Heroku:无法找到软件包 libsm6

问题描述

我正在尝试从我的github 存储库中部署一个在 heroku 上使用 openCV 的烧瓶应用程序。我在 python buildpack 中包含了heroku-buildpack-apt buildpack,我什至尝试了这个答案中给出的方法。我收到以下错误。有人请帮我让它运行。


-----> Using buildpacks:

       1. https://github.com/heroku/heroku-buildpack-apt

       2. heroku/python

-----> Apt app detected

-----> Detected Aptfile or Stack changes, flushing cache

-----> Updating apt caches

       Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]

       Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [86.7 kB]

       Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]

       Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]

       Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]

       Get:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [335 kB]

       Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]

       Get:8 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [925 kB]

       Get:9 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [778 kB]

       Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,050 kB]

       Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,362 kB]

       Fetched 17.6 MB in 2s (7,275 kB/s)

       Reading package lists...

-----> Fetching .debs for libsm6

       Reading package lists...

       Building dependency tree...

E: Unable to locate package libsm6

 !     Push rejected, failed to compile Apt app.

 !     Push failed

标签: pythonopencvherokudeployment

解决方案


推荐阅读