报错小仓库(持续更新)
(venv) D:\administrator\College\课后笔记\SE-软工\newsAPI_project>vue ui
(node:23504) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
vue ui创建项目报错Cannot read properties of undefined (reading ‘indexOf’)
使用SMTP服务时,出现SMTPAuthenticationError
| |
(venv) D:\administrator\College\课后笔记\News-recommendation-system\e2\newsAPI_project>redis-cli ping
(error) NOAUTH Authentication required.
| |

报错信息
| |
错误代码
错误分析
{‘Trump’, ‘Biden’} 是一个 set
而 Django 的 JSONField 在保存时会调用 Python 内置的 json.dumps() 来序列化数据
set 类型不能被 json.dumps() 序列化,因此报错:
解决办法
将所有 set 换成 list
配置环境 pip install tensorflow==2.0.0 时,报错 ValueError: check_hostname requires server_hostname
| |
在安装 spacy==2.2.4 时,出现 cymem 和 murmurhash 编译失败的报错。
原因分析:缺少 Windows 的 io.h 头文件,无法编译 cymem 和 murmurhash 这两个底层 C 扩展。PyPI 上很多依赖(cymem、murmurhash 等)已经不再为 Py3.6 提供预编译的 Windows wheel,只能强行从源码编译 → 导致需要 MSVC 编译环境 + 头文件。
配置好README.md环境后,在执行train_CTS.py文件时出现TypeError: Descriptors cannot not be created directly.由于Found existing installation: protobuf 4.24.4,与tensorflow版本不兼容
Resource averaged_perceptron_tagger not found. Please use the NLTK Downloader to obtain the resource: /»> import nltk /»> nltk.download(‘averaged_perceptron_tagger’)
代码在用 nltk.pos_tag(),但是 缺少 NLTK 的词性标注模型 averaged_perceptron_tagger