0
votes

I am trying to import pydub, but when I run from pydub import AudioSegment, I get this error:

Warning (from warnings module):
  File "C:\Usersname\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pydub\utils.py", line 170
    warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

I installed ffmpeg, and even though it is installed, I still get the error.
How do I fix this?