[Python] Can't install libmagic on Mac M1 Pro

Discussão em 'Python' iniciado por Stack, Abril 4, 2025.

  1. Stack

    Stack Membro Participativo

    I am having significant trouble installing some Python libraries/dependencies for a project I have to work on, specifically with libmagic. I have tried to install libmagic several ways with no success - installing it through my code editor terminal, installing it through terminal with pip, installing it via Homebrew (including removing Python and existing items and re-installing everything with homebrew).

    File "/Users/bob/.pyenv/versions/3.6.15/envs/atw/lib/python3.6/site-packages/magic.py", line 181, in <module>
    raise ImportError('failed to find libmagic. Check your installation') ImportError: failed to find libmagic. Check your installation


    Any suggestions on how to resolve this?

    Continue reading...

Compartilhe esta Página