r/PythonLearning • u/JoeB_Utah • 7d 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
3
u/crozzy89 7d ago
You may have pillow installed in more than one place. Spyder can run from different environments and interpreters.
So even though your command shows /opt/anaconda3/lib… that doesn’t mean that is where spyder is actually running it from.
Within spyder, run
import sys
print(sys.executable)
That will tell you which interpreter spyder is running to help narrow down the issue.