![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
实训期间报错整理
moz与京
豆努!
展开
-
解决报错:file ‘xxx‘ is not a Word file, content type is ‘application/vnd.openxmlformats-officedocument.t
在解析docx文件内容时报错:file 'xxx' is not a Word file, content type is 'application/vnd.openxmlformats-officedocument.themeManager+xml'这个错误可能是因为:首先查看文件属性,发现打开方式是wps,文件类型是DOCX 打开方式更改为word,再次运行依旧报错,说明是文件类型的原因。将文件内容复制一份,在word中新建文件,粘贴内容,查看新文件属性: 解析这个新建的文件,再次运行:成功运行!原创 2024-07-18 19:11:38 · 539 阅读 · 0 评论 -
解决报错:“TypeError: BaseChatModel.invoke() missing 1 required positional argument: ‘self‘”
当你调用一个类的方法时,Python 会自动将当前的实例对象传递给。在 Python 中,每个类的方法都需要一个名为。参数的方法,但是在调用时没有提供。的特殊参数,它用于引用当前的。程序在尝试调用一个需要。原创 2024-07-17 11:05:51 · 490 阅读 · 0 评论 -
解决pip安装报错“TimeoutError: The read operation timed out”
因为我用的本身就是清华源,所以尝试。原创 2024-07-14 12:24:59 · 103 阅读 · 0 评论 -
解决jupyter报错:ModuleNotFoundError: No module named ‘matplotlib.colorbar‘
升级版本依旧报错,直接在根目录(我的是E:\anaconda\Lib\site-packages\matplotlib)uninstall matplotlib文件夹(删除干净就行),再在anaconda prompt窗口中。pip install [报错的module name]看到modulenotfound问题首先想到版本问题。原创 2024-07-11 09:22:26 · 174 阅读 · 0 评论 -
解决jupyter %matplotlib inline报错:“Key backend: ‘inline‘ is not a valid value for backend; ”
ok,下一步运行代码,运行成功!原创 2024-07-11 01:28:06 · 127 阅读 · 0 评论 -
解决python报错:AttributeError: module ‘matplotlib.cm‘ has no attribute ‘spectral‘
Could not install packages due to an OSError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: '这里一堆路径,是在python文件中用到的font等等` option or check the permissions.但系试运行代码依旧会报错。安装最新版本后,检查matplotlib版本,确认为最新。2.2以上matplotlib版本如何调用spectral。原创 2024-07-10 19:36:35 · 278 阅读 · 0 评论 -
解决python安装包“ERROR: Could not install packages due to an OSError”错误
命令安装 Python 项目依赖包时,命令行报错“ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory”,有可能是文件的位置不对。原创 2024-07-10 11:32:46 · 607 阅读 · 0 评论