Ich bin auf einem Mac laufen und habe ein Problem mit dem Versuch, Pillow arbeiten zu bekommen.PIL, Kissen, Bild, cv2 Module nicht gefunden
Meine Versionen sind:
python - 2.7.6
pip - 9.0.1
Pillow - 4.0.0
Ich lief:
pip install Pillow
pip install PIL
pip install numpy
ich alle deinstalliert und wieder versucht; aber nichts scheint zu funktionieren.
Ich benutze:
from PIL import Image
oder
import Image
von denen beide nicht funktionieren. Wenn ich "pip show --files Pillow" starte, erscheinen alle meine PIL- und Pillow-Dateien.
Ich versuchte auch hier gepostet cv2 mit den Anweisungen zu installieren: http://www.mobileway.net/2015/02/14/install-opencv-for-python-on-mac-os-x/
import cv2
ich dies als meine Fehler:
Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PIL
>>> import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Image
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cv2
falsch Irgendwelche Vorschläge, was ich tue?
Gibt es eine Chance, dass Sie mehr als eine Version von Python installiert? Haben Sie bei der Installation mit pip festgestellt, dass keine Fehler aufgetreten sind? –
@ BrianO'Donnell Ich denke, dass ich um ehrlich zu sein (zufällig), aber ich weiß nicht, wie man sie findet und löscht sie – hiquetj