Reputation: 159
I know that this has been asked a number of times before, but none of the solutions I have found are working for me. I think my question is best explained by the below:
MacBook-Pro-52:gps_meta_to_csv Thomas$ pip list
Package Version
---------- -------
pip 19.1.1
setuptools 40.8.0
wheel 0.33.4
MacBook-Pro-52:gps_meta_to_csv Thomas$ pip3.7 install Pillow
Collecting Pillow
Using cached https://files.pythonhosted.org/packages/22/55/2ce41fa510f131c776112a1d24ee90cddffc96f1bf0311efb14fdd8ae877/Pillow-6.0.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: Pillow
Successfully installed Pillow-6.0.0
MacBook-Pro-52:gps_meta_to_csv Thomas$ pip list
Package Version
---------- -------
Pillow 6.0.0
pip 19.1.1
setuptools 40.8.0
wheel 0.33.4
MacBook-Pro-52:gps_meta_to_csv Thomas$ python gps_exif.py
Traceback (most recent call last):
File "gps_exif.py", line 4, in <module>
from Pillow import Image
ModuleNotFoundError: No module named 'Pillow'
MacBook-Pro-52:gps_meta_to_csv Thomas$ pip --version
pip 19.1.1 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
MacBook-Pro-52:gps_meta_to_csv Thomas$ python --version
Python 3.7.3
MacBook-Pro-52:gps_meta_to_csv Thomas$ ls /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/
PIL __pycache__ pip setuptools wheel-0.33.4.dist-info
Pillow-6.0.0.dist-info easy-install.pth pip-19.1.1.dist-info setuptools-40.8.0.dist-info
README.txt easy_install.py pkg_resources wheel
How can I get this Pillow module to be seen by my Python script? Any thoughts are appreciated. Thanks!
Upvotes: 0
Views: 227
Reputation: 47209
The first thing you'll notice when viewing the Installation
instructions is a large warning:
Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL.
You appear to have PIL
installed, so uninstall it first, then see if that solves the problem.
Upvotes: 2