我需要在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
答案 0 :(得分:2)
安装apt软件包需要sudo,heroku不允许你使用slu。 您可以使用此buildpack:https://github.com/heroku/heroku-buildpack-apt
或者您可以使用heroku docker支持推送泊坞窗图像。那些图像也不允许你sudo。但是你可以在构建时使用sudo。 见https://devcenter.heroku.com/articles/container-registry-and-runtime
如果您仍想使用带有docker的buildpack和更简单的方法来安装软件包,那么开发人员预览中也会heroku.yml
:
https://devcenter.heroku.com/articles/heroku-yml-build-manifest