- 博客(7)
- 收藏
- 关注
原创 ImportError: No module named ‘imageio.v3‘
在python3.5的环境中通过 “pip install imageio” 命令安装了imageio,查看imageio的版本为’2.9.0’。在python3.5的环境中不支持更高版本的imageio版本,无法升级成功。报错:ImportError: No module named ‘imageio.v3’上述命令可以成功执行。
2024-06-04 11:57:48 325
原创 python docxtpl利用模板生成docx文件
参考官方网址:https://docxtpl.readthedocs.io/en/latest/
2024-05-13 10:30:10 419 2
原创 使用torch报错 UserWarning: CUDA initialization: CUDA driver initialization failed
安装torch时选择的cuda版本和驱动版本不兼容,可以从官网查看cuda版本对应的驱动版本:https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html。使用nvidia-smi查看当前的驱动版本:发现驱动版本440.82可以使用cuda10.2。使用pip uninstall torch卸载之前安装的torch1.8.1+cu111,重新安装torch(版本为torch1.8.1+cu102),上述报错解决。
2024-04-11 20:21:45 909 1
原创 TypeError: invalid entry 2 in condlist: should be boolean ndarray
使用Numpy的函数np.select()的时候,报错:TypeError: invalid entry 2 in condlist: should be boolean ndarray。np.select(condlist, choicelist, default=0)中的参数condlist需要为布尔型的值,如果有非布尔,则会报上述错误。将参数中的condlist的值全部转为布尔值,则问题解决。版本信息:python=3.8, numpy=1.22。
2024-03-28 10:02:27 295 2
原创 module ‘cv2.aruco‘ has no attribute ‘DetectorParameters_create‘
在linux平台(ubuntu18.04)使用opencv语句 cv2.aruco.DetectorParameters_create()的时候,报错:module ‘cv2.aruco’ has no attribute ‘DetectorParameters_create’上述问题是因为opencv的版本过高,此版本的opencv没有相应的属性,可以重新安装其他版本的opencv来使用此属性。使用的版本信息为:python。
2024-02-29 21:15:36 952
原创 /usr/bin/ld: warning: libgstbase-1.0.so.0, needed by /lib/libopencv_videoio.so, not found
在linux平台(ubuntu18.04)使用make命令编译的过程中报错:缺少libgstbase-1.0.so.0, libgstreamer-1.0.so.0, libgstapp-1.0.so.0, libgstriff-1.0.so.0, libgstpbutils-1.0.so.0, libgstaudio-1.0.so.0, libgstvideo-1.0.so.0。上述问题是因为在链接过程中找不到依赖库,而这些依赖库是有GStreamer的基础库提供的。
2024-02-23 20:38:39 463
原创 /usr/bin/ld: warning: libavcodec.so.57, needed by /home/abc/libopencv_videoio.so, not found
你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:撤销:Ctrl/Command + Z重做:Ctrl/Command + Y加粗:Ctrl/Command + B斜体:Ctrl/Command + I标题:Ctrl/Command + S
2024-02-23 17:52:30 759
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人