As an absolute beginner, I'm trying my hand at my first python project by following this how-to:
Using my Mac Terminal, I have installed the required exif library using pip3 install exif
. When I do it again, it tells me:
Requirement already satisfied: exif in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.6.0)
So it must have installed it. However, when I try to run my python code in Visual Studio Pro, the import statement from exif import Image as ExifImage
is causing:
/usr/bin/python3 "/Users/johndoe/Library/CloudStorage/OneDrive/Desktop/Crafting Day/exif-fix.py"
johndoe@C02DN12DMD6R ~ % /usr/bin/python3 "/Users/johndoe/Library/CloudSto
rage/OneDrive/Desktop/Crafting Day/exif-fix.py"
Traceback (most recent call last):
File "/Users/johndoe/Library/CloudStorage/OneDrive/Desktop/Crafting Day/exif-fix.py", line 2, in <module>
from exif import Image as ExifImage
ModuleNotFoundError: No module named 'exif'
johndoe@C02DN12DMD6R ~ %
I also tried moving my project to the root user folder, but I got the same result.
Can anyone help me figure out why my code is not able to import the installed library?