CliveS wrote:I am having the Pillow install problem, is the problem that Python being used is in a different directory to where Pillow installed?
Last login: Wed Sep 27 04:14:28 on console
Indigo-Sierra:~ Indigo$ brew uninstall Pillow
-bash: brew: command not found
Indigo-Sierra:~ Indigo$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Indigo-Sierra:~ Indigo$ sudo pip install Pillow
Password:
The directory '/Users/Indigo/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/Indigo/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: Pillow in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Requirement already satisfied: olefile in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Pillow)
Indigo-Sierra:~ Indigo$ sudo -H pip install Pillow
Requirement already satisfied: Pillow in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Requirement already satisfied: olefile in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Pillow)
Yeah, you've got a bit of a mess there...
After some research, I've found the issue. If you have this directory:
- Code: Select all
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
Then you (or perhaps some other app installer)
installed Python from the installer from python.org. Indigo uses the built in Python install, but when you run the installer from python.org then it modifies things such that typing
python in a shell executes the one installed by their installer, bypassing Apple's built-in install. Further, pip was likely either installed with the 3rd party python install or it was installed using the 3rd party python - either case will cause the problem you're seeing.
I would highly recommend uninstalling the 3rd party python as it will not work with Indigo and will continually cause issues like this.
This should be what you see when looking at which python command is being used:
- Code: Select all
FatBook:~ jay$ which python
/usr/bin/python