Python Forum

Full Version: ModuleNotFoundError: No module named 'eyed3'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry, I am new to Python...

I am trying to use eyed3 to update the tags on a number of mp3 files. I found eyed3 mentioned in some posts on the internet and tried following installation instructions:
Output:
py -m pip install eyeD3 py -m pip install python-magic-bin
Those install statements worked correctly. The eyeD3 command it provides works in Windows command prompt.

Then, also this to use eyed3 in python.
Output:
pip install eyed3
But when I try to run in python, on "import eyed3" statement, I get:
Error:
Exception has occurred: ModuleNotFoundError No module named 'eyed3' File "C:\python\chgmp3.py", line 2, in <module> import eyed3 ModuleNotFoundError: No module named 'eyed3'
I do not know how to debug this problem. I would appreciate any advice.
You most use same Python version/interpreter as you install to,if run in a Editor
Example.
# Test pip
G:\div_code\egg
λ pip -V
pip 23.1.2 from C:\python311\Lib\site-packages\pip (python 3.11)

# Install
G:\div_code\egg
λ pip install eyed3
Collecting eyed3
...... 
Successfully installed coverage-5.5 deprecation-2.1.0 eyed3-0.9.7 filetype-1.2.0 toml-0.10.2

# Test
G:\div_code\egg
λ python
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import eyed3
>>> # No error

>>> import sys
>>>
>>> sys.executable
'C:\\python311\\python.exe'
So if you test as i do here,see that i most use C:/python311/python.exe in setting(choose interpreter) Editor/IDE if i want eyed3 to work.
Quote: setting(choose interpreter) Editor/IDE if i want eyed3 to work.
Thanks, that was exactly the problem.