DeBug大作战!!
文章平均质量分 71
改bug解题思路大锦集!!!
Inochigohan
是个菜鸟,如假包换
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux||报错:vboxuser is not in the sudoers file. This incident will be reported.
使用sudo命令修改系统参数,报错如下:vboxuser is not in the sudoers file. This incident will be reported.原创 2022-12-06 17:21:02 · 8479 阅读 · 1 评论 -
Linux||使用vi编辑器按上下键输出字母
使用Linux自带的vi编辑器修改/etc/sudoers文件时候,按i键进入编辑模式。使用键盘上下左右键切换鼠标位置时,文件内输出奇奇怪怪的字母PBAAABBB......原创 2022-12-06 17:02:28 · 2245 阅读 · 0 评论 -
MySQL||SQL_ERROR_INFO: “You can‘t specify target table ‘titles_test‘ for update in FROM clause“
一、问题描述假定test数据库存在表titles_test,表内数据如下: 先要求删除emp_no重复的记录,只保留最小的id对应的记录。编写代码如下:delete from titles_testwhere id not in ( select min(id) from titles_test group by emp_no); 报错:You can't specify target table 'titles_test...原创 2022-01-22 17:00:14 · 866 阅读 · 0 评论 -
MYSQL||报错:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated
碎碎念: 兄弟萌,我胡汉三又回来啦(。・∀・)ノ゙嗨,最近在期末考,一不小心二十几天没发博了,年底KPI没冲成功,今天就来补一下下§(* ̄▽ ̄*)§一、问题描述 今天在牛客网做SQL的题:牛客的课程订单分析(五),具体内容感兴趣的小伙伴自行去搜一下,这里简述一下~~ 编码要求如下: 我写的代码如下(真是老太婆的裹脚布,又臭又长,谁叫我是个菜鸟呢〒▽〒WITH base_table AS ( SELECT user...原创 2022-01-08 15:30:42 · 20931 阅读 · 0 评论 -
Python||ValueError: Found array with dim 3. LinearDiscriminantAnalysis expected <= 2.
距离新的一年还有14天,是时候要冲冲KPI了(ง •_•)ง没错,这又是一篇改错的水贴,百无聊赖记录一下改错经历,虽然期末大作业还没写U•ェ•*U一、问题描述 应用线性判别分析Linear Discriminant Analysis对经典手写数字数据集进行分类 首先导一下要用到的包和数据集,然后用LinearDiscriminantAnalysis()对数据集进行训练,然后就报错了ValueError: Found array with dim 3. Line...原创 2021-12-17 23:15:30 · 22261 阅读 · 2 评论 -
pip报错 || ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)
一、问题描述 运行import pandas as pd结果报错ModuleNotFoundError: No module named 'pandas' 忽然想起来自己换了个新的虚拟环境,起名为eve-gpu(没错,我就是eve的死忠粉( •̀ ω •́ )✧)只不过该虚拟环境安装的是tensorflow的gpu版哈 既然报错没有pandas包,那按照惯例,使用pip install pandas即可,然后问题又来了 ...原创 2021-12-12 11:58:24 · 25479 阅读 · 8 评论 -
Python||报错:ModuleNotFoundError: No module named ‘nltk‘
碎碎念: 为什么会有这个帖子呢?一般No module named 'nltk'之类的报错我是不会写帖子记录过程的,因为一般情况下pip install都可以解决。但是(凡是就怕个但是),这个报错不简单,因为后面还有一系列错,花了我两三个小时才解决。 让我觉得离谱的是,安装包都安装到相应路径下了居然还要手动解压缩包,这是我万万没想到的。而且当时一心思想着解bug,就没想过要记录,所以为了写这篇帖子,我又还原了一遍当时的bug,重新操作了一遍,作死之路开启,于是就有了这篇...原创 2021-11-11 23:32:15 · 18566 阅读 · 5 评论 -
Python||报错:TypeError: can only join an iterable
一、问题描述筛选all_seg.txt中的词语,去停用词,相关代码如下:pkutest = [line.strip() for line in open ('all_seg.txt','r',encoding = 'utf-8').readlines()]#GBK编码:是指中国的中文字符,其中它包含了简体中文与繁体中文字符,另外还有一种字符“gb2312”,这种字符仅能存储简体中文字符。#UTF-8编码:它是一种全国家通过的一种编码,如果你的网站涉及到多个国家的语言,那么建议...原创 2021-11-06 23:41:07 · 7974 阅读 · 0 评论 -
Python||报错:ImportError: Missing optional dependency ‘xlrd‘. Install xlrd >= 1.0.0 for Excel support
一、问题一1.1问题描述 使用pandas.read_excel()函数读取2wdata1.xlsx文件里的数据,却报错ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd.1.2解决方案 打开Anaconda Prompt,进入对应的虚拟环境,使用命令行pip i...原创 2021-11-06 14:22:29 · 12234 阅读 · 2 评论 -
Anaconda||install报错:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghu
一、问题描述今天又是美好的一天(ง •_•)ง是时候开始学习板砖了打开Anaconda在自己的虚拟环境安装jupyter notebook,还没运行个几秒就报错,报错内容还很长一大段(反正我又看不懂了)CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64...原创 2021-11-06 12:25:17 · 2646 阅读 · 3 评论 -
Python||报错:ValueError: endog has evaluated to an array with multiple columns that has shape (805, 2)
一、问题描述搭建逻辑回归模型时报错,模型代码如下:import statsmodels.api as smformula = "y ~ x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19"model = sm.Logit.from_formula(formula, data = train_data)报错情况如下:二、具体原因ValueError错误...原创 2021-10-24 23:01:47 · 3924 阅读 · 0 评论 -
Python||报错:Couldn‘t find a tree builder with the features you requested: lxml.
近期由于完成学校作业的需要,博主要学学数据爬虫(好耶ヽ(✿゚▽゚)ノ又是一座高山要攀登)。由于博主是一个刚入门的小白(是真的白哦~~),可能有些的地方描述的不是很清楚或很正确,但是这都不是事,发现问题,记录问题,解决问题才是关键~~ 以下进入正题~~一、问题描述 使用已封装好的BeautifulSoup库获取网页的文章标题时,报错Couldn‘t find a tree builder with the features you requeste...原创 2021-10-07 15:17:48 · 5856 阅读 · 1 评论 -
Anaconda||Python报错:TypeError: Image data of dtype <U40 cannot be converted to float
一、问题描述在Spyder中,使用 matplotlib.pyplot 查看文件夹中一张图片编写代码程序为:import matplotlib.pyplot as pltplt.figure("Sample") #打开一个图像窗口img_path = "E:\\TotalTrain\\yirenzou100ns_0m_18041.png"plt.imshow(img_path) plt.axis('on') #显示坐标轴plt.title('yirenzou原创 2021-10-01 22:17:36 · 22589 阅读 · 1 评论 -
Anaconda||Python报错:No module named ‘cv2‘
一、问题描述环境配置:Win10(64-bit)、Anaconda3(4.3.0)、python3.6、spyder(5.1.5)输入代码 import cv2 报错:No module named 'cv2'二、解决方法2.1方法一:Anaconda Navigator打开Anaconda Navigator切换到自己创建的环境,搜索opencv,点击Apply进行安装但我使用的镜像源没有相应的安装包,所以不行T_T2.2方法二:Anaconda prompt打原创 2021-10-01 15:42:36 · 4955 阅读 · 0 评论 -
MySQL||报错:SQL_ERROR_INFO: ‘Every derived table must have its own alias‘
一、背景 运行以下代码,报错SQL_ERROR_INFO: 'Every derived table must have its own alias'select *from(select user_id,row_number() over(partition by user_id order by user_id) as re,lead(date,1,0) over(partition by user_id order by user_id) as lofrom log...原创 2021-08-14 21:38:20 · 2233 阅读 · 0 评论 -
MySQL||错误代码: 1366Incorrect string value: ‘\xE5\xBC\xA0\xE5\xB0\x8F...‘ for column ‘stuname‘ at row 1
一、背景 往数据库students中表stuinfo添加数据报错,报错结果如图所示。二、查找原因 1、查看MySQL字符集的编码方式,使用代码:SHOW VARIABLES LIKE '%char%'; 结果为: 2、查看当前数据库字符集的编码方式,使用代码:SHOW CREATE DATABASE students;其中students为当前数据库的名称,结果如下: 3、查看所使用表字符集...原创 2021-08-09 22:00:30 · 926 阅读 · 0 评论
分享