![](https://img-blog.csdnimg.cn/20191220115728204.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
报错集锦
报错集锦
GLL_
每种编程语言独具特色,抓住自身特点去使用
展开
-
【Python】【问题集锦】Python中解决ImportError: bad magic number in 'random': b'\x03\xf3\r\n
python中解决ImportError: bad magic number in 'random': b'\x03\xf3\r\nroot@ubuntu# python3 randomtest.py Traceback (most recent call last): File "randomtest.py", line 5, in <module> impor...原创 2020-04-02 12:10:00 · 13671 阅读 · 0 评论 -
【问题集锦】解决 Python通过Mysql语句查询出现中文乱码,unicode类型
解决 Python通过Mysql语句查询出现乱码在查询过程中,查询的数据库字段类型为varchar 排序规则设置 utf8_general_ci查出来之后发现是中文乱码,已打印就报错,所以就查询它的类型为unicode类型在python语句中最上方已经添加了# -*- coding:utf-8 -*-可惜不管用在添加了下面以后,就正常了import sysrel...原创 2020-03-23 09:02:09 · 1001 阅读 · 0 评论 -
【ffmpeg】【报错集锦】ffmpeg视频编码出现Unknown encoder 'libx264'问题
1.下载x264源码git clone http://git.videolan.org/git/x264.git2.解压源码 sudo tar -xjf last_x264.tar.bz2cd x264-snapshot-20180705-2245三部曲:./configuremakemake install运行./configure出现 错误:Found ...转载 2020-03-05 16:59:58 · 3667 阅读 · 1 评论 -
【ffmpeg】ffmpeg视频添加水印并解决字体问题Could not load font "FreeSerif.ttf":cannot opencv resource
解决字体问题Could not load font "FreeSerif.ttf":cannot opencv resource原创 2020-03-03 11:46:13 · 3565 阅读 · 0 评论 -
【Linux】【问题集锦】如何删除shell只读变量
source /etc/profile 出现bash:PROMPT-COMMAND: 只读变量利用unset命令是无法删除只读变量的如果你linux中没有gdb命令的话,下载一下sudo yum install gdb下载好之后先按照下面的方法试验一下# readonly test=1# test=2bash: test: 只读变量# cat <...原创 2020-02-12 14:56:48 · 1589 阅读 · 0 评论 -
【Python】【报错集锦】解决Python Tkinter模块tkinter.TclError: unknown color name "BACKGOUND"
解决Python Tkinter模块tkinter.TclError: unknown color name "BACKGOUND"产生下面错误解决方法运行xrdb -load /dev/nullxrdb -query运行结果原创 2020-01-16 13:06:52 · 4172 阅读 · 3 评论 -
【QT】【Opencv】【报错集锦】error while loading shared libraries: libopencv_core.so.3.4: cannot open shared
QT+opencv: error while loading shared libraries: libopencv_core.so.3.4: cannot open shared object file: No such file or directory##解决方法: 1 打开路径: /etc/ld.so.conf.d 2 创建文件:Ope...转载 2020-01-09 12:55:55 · 4441 阅读 · 4 评论 -
【VMware】【报错集锦】The VMX process exited prematurely 解决
由于虚拟机卡住了,我就利用任务管理器关闭了这个进程,然后删除里面的lck后缀的文件之后,就出现这个错误The VMX process exited prematurely解决办法:注销或重启电脑,然后就可以了,不行的话删除里面的lck后缀的文件即可...原创 2020-01-07 17:11:43 · 3627 阅读 · 0 评论 -
【QT】【问题集锦】QT中QDebug无法调试,显示不出来,已解决
1.修改配置文件touch ~/.config/QtProject/qtlogging.inivi ~/.config/QtProject/qtlogging.ini2.写qtlogging.ini配置文件信息[Rules]*.debug=trueqt.*.debug=falsectrl + :x 退出3.创建一个项目在mainwindow.cpp中添加...原创 2019-12-10 17:44:37 · 4311 阅读 · 0 评论 -
【python】【解决报错】python安装barcode条形码模块
python-barcode源码包下载:https://download.csdn.net/download/rong11417/12014729[root@localhost python-barcodes-master]# python setup.py installPIL not found. Image output disabled.Traceback (most re...原创 2019-12-05 12:47:36 · 2833 阅读 · 0 评论 -
pip Import Error:cannot import name main解决方案
在使用pip来进行安装操作时碰到这样的问题:后来发现是因为将pip更新为10.0.0后库里面的函数有所变动造成这个问题。解决方案:sudo gedit /usr/bin/pip1将原来的:from pip import mainif __name__ == '__main__': sys.exit(main())123改成:from pip import...转载 2019-11-22 21:20:33 · 173 阅读 · 0 评论 -
configure编译时,出现 configure: error: C compiler cannot create executables错误解决 .
今天在服务器上安装bind9.9.2的时候,gcc和gcc-c++已经安装过了,但是./configure的时候还是报错: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking whether ma...转载 2019-11-20 11:16:53 · 9232 阅读 · 0 评论