我需要在heroku上安装此软件包
apt-get install python3-tk
有人可以告诉我如何安装它吗?我尝试了上述命令,但收到了此消息
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
安装apt软件包需要sudo,但是heroku不允许您使用slug。
您可以使用此buildpack:https : //github.com/heroku/heroku-buildpack-apt
或者,您可以使用heroku泊坞窗支持来推送泊坞窗图像。这些图像也不允许您使用sudo。但是,您可以在构建它们时使用sudo。参见https://devcenter.heroku.com/articles/container-registry-and-runtime
如果您仍然想将buildpacks与docker结合使用并以更简单的方式安装软件包,请heroku.yml
在开发人员预览版中找到:https : //devcenter.heroku.com/articles/heroku-yml-build-manifest
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句