Hallo Python-Community,
bei laden meines Codes erhalte ich folgende Fehlermeldung:
ImportError Traceback (most recent call last)
<ipython-input-1-044f26ab0dfa> in <module>
60
61 # dimensions of the generated picture.
---> 62 width, height = load_img(base_image_path).size
63 img_nrows = 400
64 img_ncols = int(width * img_nrows / height)
C:\ProgramData\Anaconda3\envs\Python3.6\lib\site-packages\keras_preprocessing\image.py in load_img(path, grayscale, color_mode, target_size, interpolation)
494 color_mode = 'grayscale'
495 if pil_image is None:
--> 496 raise ImportError('Could not import PIL.Image. '
497 'The use of `array_to_img` requires PIL.')
498 img = pil_image.open(path)
ImportError: Could not import PIL.Image. The use of `array_to_img` requires PIL.
Ich vermute die PIP (pillow) installieren muss. Beim Versuch erhalte ich allerdings folgende Meldung:
"you are using pip Version 10.0.1. however 10.8. is available"
Nun komme ich nicht mehr weiter. Wisst ihr ob
a) mein Ansatz PIP zu installieren der richtige Weg ist?
b) wie erhalte ich diese 10.8 Version.
Danke vorab für's durchlesen und hoffentlich einen Lösungsansatz
Viele Grüße
Marco
Fehlermeldung PIL
- __blackjack__
- User
- Beiträge: 13007
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
Ansonsten installiert man neue(re) versionen von ``pip`` mit ``pip``.
“Most people find the concept of programming obvious, but the doing impossible.” — Alan J. Perlis