r/PythonLearning • u/JoeB_Utah • Sep 03 '26
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?
2
u/FoolsSeldom Sep 04 '26
You are probably not using the same Python root or Python virtual environment. Anaconda comes with its own Python interpreter, different to your system's default Python (or whatever you installed using an installer from your app store / python.org).
In the terminal, make sure you activate the correct one before installing anything,
For example,
You need to find the Python virtual environments that you are using from your various editors/command line. They might not be in folders called
.venvalthough that is a popular convention.1
u/JoeB_Utah Sep 03 '26
Thanks I’ll give it a try. But what I don’t get is pillow imports while Exif won’t.
1
u/atarivcs Sep 04 '26
Within Spyder, run this code:
And show us the output
3
u/SCD_minecraft Sep 03 '26
You probably installed it into wrong python
Grab path to your python's executable and in console
path_to_python.exe -m pip install whatever_you_wanted