我是使用Pycharm编程的新手。我想访问openpyxl(已安装),但收到以下错误消息:

时间:2019-07-01 15:59:31

标签: python pycharm

当我尝试导入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'

0 个答案:

没有答案