My django project uses python-magic. In order to get magic working on my local windows machine, I've had to install python-magic-bin, otherwise I faced the error "ImportError: failed to find libmagic. Check your installation".
But when I push this dependency to my Heroku (linux) server, my build fails with the error "Could not find a version that satisfies the requirement python-magic-bin==0.4.14. No matching distribution found for python-magic-bin==0.4.14."
I'm importing magic as "import magic". I've seen another answer here on an old post which said the issue came from using "from magic import magic", but that's not the case here.
What do I need to do to get python-magic working on both setups? I dont want to have to remember to keep python-magic-bin out of the requirements.txt for the remote server.