Installing ImageMagick for a Python project

Aargon024/22/2023
Hello, I'm trying to deploy a Python Flask image generation server, which requires ImageMagick for the Wand package. I've tried various methods to install ImageMagick but it's not been working. Even though the build logs say that ImageMagick was installed, during deployment Python produces this error:
File "/opt/venv/lib/python3.8/site-packages/wand/api.py", line 178, in <module>
raise ImportError('MagickWand shared library not found.\n'
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
https://docs.wand-py.org/en/latest/guide/install.html

I've tried following the steps in the link, but it still doesn't work
Aargon024/22/2023
755b9377-178d-4b4d-9cc2-1357a4459901
Aargon024/22/2023
Before adding the Nixpacks.toml file, I had this project deployed on Heroku with no issues
Aargon024/22/2023
Like during the free tier period
UUUnknown User4/22/2023
Message Not Public
Sign In & Join Server To View
Aargon024/23/2023
Ah I don't really get what you mean