当我尝试导入openpyxl时出现错误消息
我也尝试过重新安装模块,但没有任何改变
Traceback (most recent call last):
File "C:/Users/ee/Desktop/PersonalProjects/updateProduce.py", line 1, in <module>
import openpyxl
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\__init__.py", line 6, in <module>
from openpyxl.workbook import Workbook
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\workbook\__init__.py", line 5, in <module>
from .workbook import Workbook
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\workbook\workbook.py", line 18, in <module>
from openpyxl.writer.excel import save_workbook
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\writer\excel.py", line 30, in <module>
from openpyxl.drawing.spreadsheet_drawing import SpreadsheetDrawing
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\drawing\spreadsheet_drawing.py", line 28, in <module>
from openpyxl.drawing.image import Image
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\openpyxl\drawing\image.py", line 7, in <module>
from PIL import Image as PILImage
File "C:\Users\ee\PycharmProjects\untitled1\venv\lib\site-packages\PIL\Image.py", line 33, in <module>
import logging
File "C:\Users\ee\Desktop\PersonalProjects\logging.py", line 2, in <module>
logging.basicConfig(level = logging.DEBUG, format = ' %(asctime)s - %(levelname)s - %(message)s')
AttributeError: module 'logging' has no attribute 'basicConfig'