安装docx后,import提示Import Error: No module named ‘exceptions‘

简介: 安装docx后,import提示Import Error: No module named ‘exceptions‘

pip默认安装的版本,不兼容python 3.0以上的版本,需要下载whl单独安装。

https://www.lfd.uci.edu/~gohlke/pythonlibs/ 下载


python_docx-0.8.6-py2.py3-none-any.whl


到7月1日已经更新为python_docx-0.8.10-py2.py3-none-any.whl


下载之后到目录 pip install ***.whl

再次import不再报错了。



目录
相关文章
|
12月前
from pymdownx import superfences No module named ‘pymdownx‘
from pymdownx import superfences No module named ‘pymdownx‘
105 0
成功解决ImportError: cannot import name ‘InvalidSchemeCombination‘ from ‘pip._internal.exceptions‘
成功解决ImportError: cannot import name ‘InvalidSchemeCombination‘ from ‘pip._internal.exceptions‘
|
4月前
|
Web App开发 测试技术 Python
【Python】已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrom
【Python】已解决:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrom
492 6
|
4月前
|
Python
【Python】已解决:(from docx import Document导包报错)ModuleNotFoundError: No module named ‘exceptions’
【Python】已解决:(from docx import Document导包报错)ModuleNotFoundError: No module named ‘exceptions’
257 0
python警告:Workbook contains no default style, apply openpyxl‘s default warn
python警告:Workbook contains no default style, apply openpyxl‘s default warn
|
PyTorch 算法框架/工具 Python
代码import torch 报错 ImportError: numpy.core.multiarray failed to import
代码import torch 报错 ImportError: numpy.core.multiarray failed to import
481 0
|
Python
解决ImportError: cannot import name ‘NoReturn‘报错
解决ImportError: cannot import name ‘NoReturn‘报错
800 0
|
Python
rqalpha安装后使用报错:numpy.core.multiarray failed to import
rqalpha安装后使用报错:numpy.core.multiarray failed to import
91 0
|
Python
Fatal Python error:initsite:Failed to import the site module
Fatal Python error:initsite:Failed to import the site module
682 0
Fatal Python error:initsite:Failed to import the site module