I got an error while deploying

apparmor is not a valid Python package on PyPI – it does not exist.

https://pypi.org/project/apparmor/

It is instead a Linux package you can install via packages.txt:

You can upload a packages.txt containing the following to install the package:

apparmor

Note: you do not have root access to the container in which your Community Cloud app is deployed. As such, you will be unable to configure AppArmor to alter any kernel/OS level behavior.