随笔分类 -  Python / python报错

摘要:**报错信息** 使用`metric = evaluate.load("seqeval")`的时候,报如下错误: ```python ImportError: To be able to use evaluate-metric/seqeval, you need to install the fol 阅读全文
posted @ 2023-07-30 22:06 张Zong在修行 阅读(542) 评论(0) 推荐(0) 编辑
摘要:**报错信息** Python加载xlsx文件时,遇到: ```python xlrd.biffh.XLRDError Excel xlsx file; not supported ``` **错误原因** 报错翻译过来是: ```python xlrd.biffh.xlrd错误:Excel xls 阅读全文
posted @ 2023-07-30 16:14 张Zong在修行 阅读(946) 评论(0) 推荐(0) 编辑
摘要:**报错信息** 使用Python正则匹配的时候,报如下错误: ```python AttributeError: 'NoneType' object has no attribute 'group' ``` **错误原因** 报错翻译过来是: ```python 属性错误:“NoneType”对象 阅读全文
posted @ 2023-07-23 09:44 张Zong在修行 阅读(4326) 评论(0) 推荐(0) 编辑
摘要:学习爬虫遇到的错误。 **报错信息:** ```python requests.exceptions.SSLError: HTTPSConnectionPool(host=’*****’, port=443): Max retries exceeded with url: / (Caused by 阅读全文
posted @ 2023-07-16 22:47 张Zong在修行 阅读(1610) 评论(0) 推荐(0) 编辑
摘要:**报错信息** 在执行nlp自定义模型的训练函数的时候,报如下错误: ```python RuntimeError: expected scalar type Float but found Long ``` **错误原因** ```python 错误信息指出了问题所在:模型期望的数据类型是 fl 阅读全文
posted @ 2023-07-07 12:56 张Zong在修行 阅读(701) 评论(0) 推荐(0) 编辑
摘要:**报错信息** 使用python创建一个datetime.data类的时候,报如下错误: ```python TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'int' ``` ** 阅读全文
posted @ 2023-07-03 09:21 张Zong在修行 阅读(723) 评论(0) 推荐(0) 编辑
摘要:#### 报错信息 使用python对模型进行输出文件的过程中,报如下错误: ```python PermissionError: [Errno 13] Permission denied: 'xxx' ``` #### 错误原因 报错翻译过来是: ```python 权限错误:[errno 13] 阅读全文
posted @ 2023-06-29 16:50 张Zong在修行 阅读(5409) 评论(0) 推荐(0) 编辑
摘要:#### 报错信息 ```python AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE' ``` #### 解决办法 ```python pip install -i https://pypi.d 阅读全文
posted @ 2023-06-29 16:38 张Zong在修行 阅读(164) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示