安装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不再报错了。



目录
相关文章
from pymdownx import superfences No module named ‘pymdownx‘
from pymdownx import superfences No module named ‘pymdownx‘
108 0
|
4月前
|
Web App开发 数据采集 Java
【Python】已完美解决:selenium.common.exceptions.SessionNotCreatedException: Message: session not created
【Python】已完美解决:selenium.common.exceptions.SessionNotCreatedException: Message: session not created
449 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
580 6
|
4月前
|
Python
【Python】已解决:(from docx import Document导包报错)ModuleNotFoundError: No module named ‘exceptions’
【Python】已解决:(from docx import Document导包报错)ModuleNotFoundError: No module named ‘exceptions’
299 0
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
|
PyTorch 算法框架/工具 Python
代码import torch 报错 ImportError: numpy.core.multiarray failed to import
代码import torch 报错 ImportError: numpy.core.multiarray failed to import
502 0
|
Python
解决ImportError: cannot import name ‘NoReturn‘报错
解决ImportError: cannot import name ‘NoReturn‘报错
810 0
|
Python
rqalpha安装后使用报错:numpy.core.multiarray failed to import
rqalpha安装后使用报错:numpy.core.multiarray failed to import
92 0