So di avere tutti i pacchetti installati (congelamento pip) Sono su una macchina Windows 10 e sono in esecuzione python3.4 e sto avendo problemi con le dipendenze straniproblemi Python importazione con image2gif
test.py:
from images2gif import writeGif
from PIL import Image, ImageSequence
import os
file_names = ['output\donkey-1.png', 'output\donkey-2.png']
images = [Image.open(fn) for fn in file_names]
size = (600,350)
for im in images:
im.thumbnail(size, Image.ANTIALIAS)
filename = "test.gif"
writeGif(filename, images, duration=0.5, subRectangles=False)
esecuzione test.py dà i seguenti errori, non riusciva a trovare l'errore in qualsiasi altro luogo sul web
Traceback (most recent call last):
File "test.py", line 2, in <module>
from images2gif import writeGif
File "C:\Python34\lib\site-packages\images2gif\__init__.py", line 1, in <module>
from images2gif import readGif as readGif
ImportError: cannot import name 'readGif'
Puoi dare un elenco della directory images2gif (C: \ Python34 \ lib \ site-packages \ images2gif)? Sembra che non ci sia nessun modulo readGif in quella directory. – Evert