Error笔记

Error笔记


1…
ZeroDivisionError: division by zero
零除法错误:被零除法

原因:
数据集导入错误

解决方案:
修改路径

RuntimeError: DataLoader worker (pid(s) 9616) exited unexpectedly
运行时错误:DataLoader worker(pid 9616)意外退出

原因:
函数加载错误

解决方案:
修改加载语句
3.
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
运行时错误:
已尝试在测试之前启动一个新流程
当前进程已完成其引导阶段。
原因:
缺失主函数

解决方案:
补充
if name == ‘main’:

SyntaxError: keyword argument repeated
原因:
SyntaxError:关键字参数重复
解决方案:

RuntimeError: CUDA out of memory. Tried to allocate 986.00 MiB
运行时错误:CUDA内存不足。尝试分配986.00 MiB(
原因:
batch_size设置的过大
解决方案:

OSError: [WinError 1455] 页面文件太小,无法完成操作
原因:

解决方案:
高级系统设置,调大页面文件的大小
7.
empty range for randrange()
原因:

解决方案:

CUDA out of memory. Tried to allocate 72.00 MiB (GPU 0; 4.00 GiB total capac
原因:
GPU资源紧张
解决方案:
调小batch_size
9.
MemoryError: Caught MemoryError in DataLoader worker process 1.
原因:

解决方案:
10.
RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR原因:

解决方案:
11.
This application failed to start because no Qt platform plugin could be initialized
这个应用程序启动失败,因为没有Qt平台插件可以初始化
原因:
环境变量没配
解决方案:

变量名:QT_PLUGIN_PATH
变量值:G:\Anaconda\Lib\site-packages\PyQt5\Qt5\plugins

12.Cannot mix incompatible Qt library (5.12.2) with this library (5.15.2)
无法将不兼容的Qt库(5.12.2)与此库(5.15.2)混合使用
原因:

解决方案:
降pyqt版本到5.12.1

13.QSqlDatabase: an instance of QCoreApplication is required for loading driver plugin
QSqlDatabase:加载驱动程序插件需要QCoreApplication的实例
原因:

解决方案:
14.
原因:

解决方案:
15.
原因:

解决方案:

原因:

解决方案:

原因:

解决方案:

原因:

解决方案:

原因:

解决方案:

猜你喜欢

转载自blog.csdn.net/qq_43605229/article/details/123864997