Closed prescriptionlifeline closed 4 months ago
Here's my code:
from PIL import Image import imagehash import sys hash = imagehash.average_hash(Image.open(sys.argv[1]), 16) print(hash)
AttributeError: module 'imagehash' has no attribute 'average_hash' is the error I'm getting.
AttributeError: module 'imagehash' has no attribute 'average_hash'
I'm running Python 3.5.3 and ImageHash 4.3.1.
I had it working before but now it's not and I have no idea as to why.
try uninstalling and reinstalling imagehash?
imagehash.__file__ can tell you which python file it picks up. Also don't make a file called imagehash.py
imagehash.__file__
imagehash.py
Here's my code:
AttributeError: module 'imagehash' has no attribute 'average_hash'
is the error I'm getting.I'm running Python 3.5.3 and ImageHash 4.3.1.
I had it working before but now it's not and I have no idea as to why.