草庐IT

YOU_MUST_LOGIN_FIRST

全部标签

Pycharm使用matplotlib报错:TypeError: vars() argument must have __dict__ attribute 解决方法

Pycharm使用matplotlib绘图时报错问题描述TypeError:vars()argumentmusthave__dict__attribute源程序:#-*-encoding:utf-8-*-'''@File:MaLearnTest01_1.py@Time:2023/03/0309:39:05@Author:seveN1foR@Version:1.0@Contact:sevencdxxiv@qq.com'''#hereputtheimportlibimportnumpyasnpimportmatplotlibasmplimportmatplotlib.pyplotaspltdefd

DefaultCPUAllocator: not enough memory: you tried to allocate

DefaultCPUAllocator:notenoughmemory:youtriedtoallocateXXX问题:系统内存不足。解决方案(1):重启电脑/使用任务管理器关闭多余应用释放系统内存(临时方案)任务管理器启用方式:ctrl+alt+del到达进程页面->右键进程结束任务解决方案(2):增加电脑虚拟内存(建议选该方案)右键任务栏->系统->系统信息->高级系统设置->系统属性->高级->性能->设置->高级->虚拟内存->更改->选择指定驱动器->选择自定义大小->设置初始大小及最大值->根据驱动器空间自行设置增加虚拟空间大小。

ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker

初次接触RabbitMQ出现问题使用springboot集成RabbitMQ启动时出现问题pom.xmlparent>groupId>org.springframework.bootgroupId>artifactId>spring-boot-starter-parentartifactId>version>2.1.6.RELEASEversion>parent>dependency>groupId>org.springframework.amqpgroupId>artifactId>spring-rabbitartifactId>dependency>application.ymlsprin

git pull 报错 error: cannot pull with rebase: You have unstaged changes

gitpull报错error:cannotpullwithrebase:Youhaveunstagedchanges.error:pleasecommitorstashthem.解决办法把没有提交的修改全都提交了,然后重新执行gitpull

[postman] SSL Error: Unable to verify the first certificate(已解决)

记录一次解决的由ssl证书带来的问题,以及解决历程。问题的产生的原因是这样的,客户想给项目迁移服务器。也是按照之前服务器的配置方式,tomcat、jdk、nginx、maven等等也是用过scp命令进行同步的,因为用scp命令能保证文件的权限也不会变。客户这面也提供了https的ssl证书,一切都准备就绪了,部署完也都可以正常访问。看起来一切都是那么顺利。紧接着就是跟项目的第三方百世仓进行测试联调,结果出现了问题,百世仓通过https访问我们服务器的接口出现了超时的情况,于是我自己用postman进行测试,结果发现接口是可以请求通的,就断定不是自己的问题,毕竟工具都能访问通,百世仓请求不过来就

git push错误:You are not allowed to force push code to a protected branch on this project

现象    本地使用 gitpush--forceorigin命令强制推送时,出现“Youarenotallowedtoforcepushcodetoaprotectedbranchonthisproject”错误,意为该分支为受保护的,不允许这类操作,可以通过git管理后台关闭该项目分支的保护状态处理。设置使用管理员账号进入git中的项目设计,setting>repository>protectedbranches>unprotect关闭保护。 

Pytorch中报错RuntimeError: The size of tensor a (60) must match the size of tensor b (56)

YOLOV5中报错:RuntimeError:Thesizeoftensora(60)mustmatchthesizeoftensorb(56)atnon-singletondimension3YOLOV5最近在学习YOLOV5的时候,刚开始遇到了如下的问题:RuntimeError:Thesizeoftensora(60)mustmatchthesizeoftensorb(56)atnon-singLetondimension3原因分析:这可能是因为5.0的工程下载了个6.1的模型,所以不匹配解决方案:yolov5s.pt[https://github.com/ultralytics/yol

Warning: [ant-design-vue: Form.Item] FormItem can only collect one field item, you haved set `ASele

控制台出现这个提示:Warning:[ant-design-vue:Form.Item]FormItemcanonlycollectonefielditem,youhavedsetASelect,ASelect,AInputNumber,AInputNumber,AInput5fielditems.Youcansetnotneedtobecollectedfieldsintoa-form-item-resttable中使用了自定义组件如图:解决方案://对应的多组件添加a-form-item-rest>/a-form-item-rest>详情官网

git rebase出错:Cannot rebase:You have unstaged changes

文章目录Cannotrebase:Youhaveunstagedchanges解决办法:执行git文件夹已经存在但没上传成功gitstatus出现rebaseinprogress;onto****Cannotrebase:Youhaveunstagedchanges原因:说明你有修改过的文件,未提交对于gitrebase理解:合并提交记录这个命令执行以下三步:1.把你修改的本地仓库的内容,取出来放到暂存区(stash)(保证工作区的干净)2.然后从远端拉取代码到本地,由于工作区干净,所以不会有冲突3.从暂存区把你之前提交的内容取出来,跟拉下来的代码合并所以rebase在拉代码前要保证你的本地工