from exceptions import PendingDeprecationWarning ModuleNotFoundError: No module named 'exceptions'
时间: 2023-11-12 16:15:11 浏览: 36
根据你提供的引用内容,`from exceptions import PendingDeprecationWarning` 这行代码引发了一个 `ModuleNotFoundError: No module named 'exceptions'` 错误。这是因为在 Python 3 中已经取消了 `exceptions` 模块。然而, `PendingDeprecationWarning` 是一个内置的警告类型,可以直接使用,无需导入任何模块。因此,你可以直接使用 `PendingDeprecationWarning`,而不需要导入 `exceptions` 模块。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Python3 读取Word文件方式](https://download.csdn.net/download/weixin_38729336/14851368)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [No module named 'exceptions'](https://blog.csdn.net/vah101/article/details/79914968)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)