在heroku上安装linux软件包
我需要在heroku上安装这个软件包在heroku上安装linux软件包,heroku,Heroku,我需要在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
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执行此操作。
您可以使用此构建包: 或者您可以使用heroku docker支持来推送docker图像。这些图像也不允许你使用sudo。但是你可以在建造它们时使用sudo。 看 如果您仍然希望将BuildPack与docker结合使用,并希望以更简单的方式安装软件包,那么开发者预览版中还有
heroku.yml
: