我需要在heroku上安装这个包
apt-get install python3-tk
Run Code Online (Sandbox Code Playgroud)
有人可以告诉我如何安装它吗?我试过上面的命令,但我收到这条消息
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-tk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Package 'python3-tk' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
安装 apt 软件包需要 sudo,而 heroku 不允许您使用 slugs。
你可以使用这个构建包:https : //github.com/heroku/heroku-buildpack-apt
或者您可以使用 heroku docker 支持来推送 docker 图像。这些图像也不允许您使用 sudo。但是您可以在构建它们时使用 sudo。请参阅https://devcenter.heroku.com/articles/container-registry-and-runtime
如果你仍然想使用带有 docker 的 buildpacks 和更简单的安装包的方法,还有heroku.yml
开发者预览版:https :
//devcenter.heroku.com/articles/heroku-yml-build-manifest
归档时间: |
|
查看次数: |
4108 次 |
最近记录: |