1
하지 않음이 원인이 무엇인지 ...AttributeError은 '모듈'개체가 어떤 속성 '수'
나는 "베개 3.3.0.win32-py34.exe"을 사용하여 파이썬 3.4.3을 실행하고이 없습니다 설치 파일. 나는이 오류 그러나
img = Image.open("a.jpg")
를 사용하여 내 이미지로 "a.jpg"을 설정하려고
from PIL import Image
와 이미지 가져 오기시
,
>>> img = Image.open("a.jpg")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python34\lib\site-packages\PIL\Image.py", line 2289, in open
preinit()
File "C:\Python34\lib\site-packages\PIL\Image.py", line 365, in preinit
from PIL import JpegImagePlugin
File "C:\Python34\lib\site-packages\PIL\JpegImagePlugin.py", line 40, in <modu
le>
from PIL import Image, ImageFile, TiffImagePlugin, _binary
File "C:\Python34\lib\site-packages\PIL\TiffImagePlugin.py", line 50, in <modu
le>
from fractions import Fraction
File "C:\Python34\lib\fractions.py", line 6, in <module>
from decimal import Decimal
File "C:\Python34\lib\decimal.py", line 3855, in <module>
_numbers.Number.register(Decimal)
AttributeError: 'module' object has no attribute 'Number'
이되지 않을 수도 있습니다 베개와 관련이 있지만 도움을 여전히 정말로 감사 할 것입니다.