Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在heroku上安装linux软件包_Heroku - Fatal编程技术网

在heroku上安装linux软件包

在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

我需要在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执行此操作。
您可以使用此构建包:

或者您可以使用heroku docker支持来推送docker图像。这些图像也不允许你使用sudo。但是你可以在建造它们时使用sudo。 看

如果您仍然希望将BuildPack与docker结合使用,并希望以更简单的方式安装软件包,那么开发者预览版中还有
heroku.yml