Python 出错: No module named _imagingtk
具体错误如下:Traceback(mostrecentcalllast):File"C:\Python26\saves\project2doc.py",line316,i...
具体错误如下:
Traceback (most recent call last):
File "C:\Python26\saves\project2doc.py", line 316, in <module>
assertEqual(verify(SCENARIO_LUXES[0],SCENARIO_LUXES[0]*2.0,SCENARIO_SIZES[0],scen_0_place,LPS90),True)
File "C:\Python26\saves\project2doc.py", line 299, in verify
display(draw_light_levels(total_light_map,[600,600],req_min_lux))
File "C:\Python26\saves\cisc106.py", line 210, in display
gui.on_tick(99999)
File "C:\Python26\saves\cisc106.py", line 176, in on_tick
self.tkImage = ImageTk.PhotoImage(self.image)
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 116, in __init__
self.paste(image)
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 181, in paste
import _imagingtk
ImportError: No module named _imagingtk 展开
Traceback (most recent call last):
File "C:\Python26\saves\project2doc.py", line 316, in <module>
assertEqual(verify(SCENARIO_LUXES[0],SCENARIO_LUXES[0]*2.0,SCENARIO_SIZES[0],scen_0_place,LPS90),True)
File "C:\Python26\saves\project2doc.py", line 299, in verify
display(draw_light_levels(total_light_map,[600,600],req_min_lux))
File "C:\Python26\saves\cisc106.py", line 210, in display
gui.on_tick(99999)
File "C:\Python26\saves\cisc106.py", line 176, in on_tick
self.tkImage = ImageTk.PhotoImage(self.image)
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 116, in __init__
self.paste(image)
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 181, in paste
import _imagingtk
ImportError: No module named _imagingtk 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询