
错误记录
牛右刀薛面
Know-what and Know-how
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用vscode的remotessh插件远程连接的时候被要求重复输入密码
需要远程连接服务器,使用ssh,我用到的是vscode里面的remotessh插件。配置好config以后进入到了vscode的密码登录界面,但是一直被要求循环输入密码,很奇怪,去网上查了资料发现很多人都遇到过,大致意思是上次连接时异常退出之类。原创 2023-11-30 20:22:33 · 2002 阅读 · 0 评论 -
在jupyter中更改、增加内核
第一步先激活conda环境。第二步执行以下两条命令。原创 2023-09-30 21:16:04 · 1023 阅读 · 0 评论 -
IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in
文章目录1、问题描述2、解决方案1、问题描述在学习MNIST手写数字识别的项目时,遇到了下面的问题:源代码出错的地方是:2、解决方案把第68行改成即可原创 2021-12-02 03:26:58 · 1440 阅读 · 0 评论 -
slice indices must be integers or None or have an __index__ method
文章目录1、问题描述2、解决方案1、问题描述今天使用opencv的imwrite方法的时候,提示了如下错误2、解决方案原来是我的cv.imwrite里面写文件名的时候忘记给图片加后缀名了。cv.imwrite('/home/barry/PycharmProject/LL/Image/img_result',img)改成:cv.imwrite('/home/barry/PycharmProject/LL/Image/img_result.jpg',img)就可以了...原创 2021-11-24 17:33:20 · 1683 阅读 · 0 评论 -
cannot resolve method ‘println(java.lang.String)
文章目录1、问题描述2、解决方案1、问题描述简直无语,今天上设计模式课设的时候,Ide突然不能用了,一直在报错,System.out.println,后面的println变成红色。2、解决方案File -> Invalidate Caches -> Invalidate and Restart就行了。...原创 2021-11-24 14:05:43 · 2135 阅读 · 1 评论 -
AttributeError: ‘Polygon‘ object has no property ‘normed‘
1、问题描述画直方图的时候出现一下错误2、解决方案错误代码 pyplot.hist(heights, 20, normed=True, histtype='step', cumulative=True)正确代码 pyplot.hist(heights, 20, density=True, histtype='step', cumulative=True)#normed参数换成density,可能是版本的问题。...原创 2021-09-07 21:23:42 · 1418 阅读 · 2 评论 -
xlrd.biffh.XLRDError: Excel xlsx file; not supported
1、问题描述使用xlrd读取‘*.xlsx’文件的时候出现一下错误2、解决方案实际上那个是xlrd的版本问题,当前最新版xlrd是‘2.0.1’的,只支持‘*.xls’格式文件,把xlrd版本降低到’1.2.0’就行了pip install xlrd==1.2.03、参考资料https://blog.youkuaiyun.com/qq_38709227/article/details/111277268...原创 2021-09-07 10:07:36 · 143 阅读 · 0 评论