Python报错:moduleNotFoundError:No module named ‘exceptions‘

报错如下:

使用 pip install docx 安装模块 docx 后,发现不能正常使用,并报错 :

    from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'

解决方法

  1. 卸载原来安装的docx
pip uninstall docx
  1. 安装 python-docx 模块即可
pip install python-docx

你可能感兴趣的:(报错解决,Python编程)