随笔分类 -  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 反神经全栈 阅读(632) 评论(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 反神经全栈 阅读(1144) 评论(0) 推荐(0)
摘要:**报错信息** 使用Python正则匹配的时候,报如下错误: ```python AttributeError: 'NoneType' object has no attribute 'group' ``` **错误原因** 报错翻译过来是: ```python 属性错误:“NoneType”对象 阅读全文
posted @ 2023-07-23 09:44 反神经全栈 阅读(4837) 评论(0) 推荐(0)
摘要:学习爬虫遇到的错误。 **报错信息:** ```python requests.exceptions.SSLError: HTTPSConnectionPool(host=’*****’, port=443): Max retries exceeded with url: / (Caused by 阅读全文
posted @ 2023-07-16 22:47 反神经全栈 阅读(1796) 评论(0) 推荐(0)
摘要:**报错信息** 在执行nlp自定义模型的训练函数的时候,报如下错误: ```python RuntimeError: expected scalar type Float but found Long ``` **错误原因** ```python 错误信息指出了问题所在:模型期望的数据类型是 fl 阅读全文
posted @ 2023-07-07 12:56 反神经全栈 阅读(910) 评论(0) 推荐(0)
摘要:**报错信息** 使用python创建一个datetime.data类的时候,报如下错误: ```python TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'int' ``` ** 阅读全文
posted @ 2023-07-03 09:21 反神经全栈 阅读(862) 评论(0) 推荐(0)
摘要:#### 报错信息 使用python对模型进行输出文件的过程中,报如下错误: ```python PermissionError: [Errno 13] Permission denied: 'xxx' ``` #### 错误原因 报错翻译过来是: ```python 权限错误:[errno 13] 阅读全文
posted @ 2023-06-29 16:50 反神经全栈 阅读(6540) 评论(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 反神经全栈 阅读(215) 评论(0) 推荐(0)