常见错误
fighting_!
每天进步一点点
展开
-
【Python】pyinstaller打包exe后报错xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library
尝试了网上查询的多个博客,最终我的有效解决措施是:第一步,通过pyinstaller打包。第二步,通过pyinstaller打包。成功解决,不再报错。原创 2024-06-15 16:21:37 · 213 阅读 · 1 评论 -
【python】使用fitz包读取PDF文件报错“ModuleNotFoundError: No module named ‘frontend‘”
在一系列尝试后成功解决报错ModuleNotFoundError: No module named 'frontend'问题原创 2024-01-05 14:33:04 · 1398 阅读 · 0 评论 -
pytorch报错RuntimeError: CUDA out of memory
pytorch报错RuntimeError: CUDA out of memory最近我在复现一个大型代码,使用pytorch,总会出现报错CUDA out of memory的情况。原作者同时使用了几个GPU来跑,而因为硬件条件限制,我们教研室只有一个GPU,所以我总会遇到下边的错误:RuntimeError: CUDA out of memory. Tried to allocate 823.88 MiB (GPU 0; 7.93 GiB total capacity; 6.96 GiB alrea原创 2021-07-11 19:47:41 · 1997 阅读 · 0 评论 -
运行python3 setup.py build develop报错unable to execute‘:/usr/local/cuda-9.0/bin/nvcc‘: No such file or
运行python3 setup.py build develop报错unable to execute’:/usr/local/cuda-9.0/bin/nvcc’: No such file or directory今天在运行程序时,出现报错:原创 2021-04-20 14:02:16 · 1640 阅读 · 0 评论 -
C语言:多个源文件时出现错误:main已经在test.obj中定义,找到一个或多个多重定义的符号
在我使用VS编写c语言代码时:在一个项目下放了2个源文件,在运行时就会出现报错,听了课程后才知道是因为多个源文件就会有多个main函数,而main函数又是程序的入口,不知道从哪个main函数开始运行自然就出现了错误。现总结如下:当VS中一个项目下有两个及以上的源文件时,编译会产生错误:main已经在test.obj中定义找到一个或多个多重定义的符号解决方法:将不需要编译的源文件排除:右键“属性”,将“从生成中排除”选择“是”,保存后再运行需要运行的源文件就可以成功,且被排除的文件右下角有红标。原创 2021-02-04 17:50:00 · 24494 阅读 · 18 评论 -
C语言:使用scanf函数时出现错误‘scanf‘: This function or variable may be unsafe.
在初学c语言使用scanf函数时,我的举例程序如下:#include<stdio.h>int main(){ int num1 = 0; int num2 = 0; int sum = 0; scanf("%d%d", &num1, &num2);//取地址符号& sum = num1 + num2; printf("sum = %d\n", sum); return 0;}会出现如下图中的错误:出现错误的原因:scanf是C语言提供的,sc原创 2021-01-23 21:56:10 · 6930 阅读 · 3 评论