Python Forum
Module mutagen - Printable Version

+- Python Forum (
+-- Forum: Python Coding (
+--- Forum: General Coding Help (
+--- Thread: Module mutagen (/Thread-Module-mutagen)

Module mutagen - romeogg - Oct-12-2019


I'm trying to create an mp3-player.

But having trouble loading the mutagen module.

I always get en error "No module named 'mutagen'".

It is installed (dit that 10 times)
If I check all my modules installed, it's there.

I tried 'almost' everything but always keep getting the same error.

Cananyone help me out?


RE: Module mutagen - snippsat - Oct-12-2019

Which OS?
pip decide which version you install to,use pip -V on Linux it could be pip3 -V
Then need to use same Python version that pip point to.
Some Editors need to configure so use right interpreter(also the Python version pip point to).

Here in virtual environment Windows.
(forum_env) E:\div_code\forum_env
# Test pip
λ pip -V
pip 19.2.3 from e:\div_code\forum_env\lib\site-packages\pip (python 3.7)

# Install
(forum_env) E:\div_code\forum_env
λ pip install mutagen
Collecting mutagen
  Downloading ...
Successfully installed mutagen-1.42.0

# Test that work
(forum_env) E:\div_code\forum_env
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mutagen
>>> mutagen.version
(1, 42, 0)
>>> exit()
(forum_env) E:\div_code\forum_env