[Python] How to fix: ImportError: dynamic module does not define module export function...

Discussão em 'Python' iniciado por Stack, Julho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I have python 3.13 and I installed portaudio via homebrew. I'm on macOS 15.4.1. I have PyAudio-0.2.14. When I try to import pyaudio, I get this error:

    >>> import pyaudio
    Could not import the PyAudio C module 'pyaudio._portaudio'.
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/Users/user_name/Library/Python/3.10/lib/python/site-packages/pyaudio/__init__.py", line 111, in <module>
    import pyaudio._portaudio as pa
    ImportError: dynamic module does not define module export function (PyInit__portaudio)


    I tried on older versions of python and I get the same error.

    Continue reading...

Compartilhe esta Página