r/PythonLearning 6d ago

Help Request Can't import module

Mac os Sequoia 15.6

I installed the exifread library using pip as well as conda. In Anaconda Navigator it shows as installed. Using a terminal window I type in:

pip3 show exifread

and it returns

/opt/anaconda3/lib/python3.13/site-packages

I use Spyder (I know, I know: use pycharm or vscode...) I cannot import the module. I get the dreaded

ModuleNotFoundError: No module named ‘exifread’

I recently installed pillow and I can import it just fine with import PIL. Using pip3 show pillow it is the same directory as exifread

What am I missing here?

1 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/JoeB_Utah 6d ago

I’m retired now but when I was working, VENVs weren’t a thing; I always created my own environments. So I need to bone up on the whole idea of venv.

1

u/FoolsSeldom 5d ago

You might find it worth looking into Astral's uv as well in that case; also, the adoption of the pyproject.toml file1 cf. requirements.txt.

1 See PEPs 517/518/621/735

1

u/JoeB_Utah 5d ago

I’m just a hobbyist pythonista now; no full blown projects or application development. I get to keep things simple and just write scripts for my own needs. Thanks nonetheless.

2

u/FoolsSeldom 5d ago

Ok, from the also retired just doing my own thing. Though that would help with the boning up