草庐IT

DefaultCPUAllocator: not enough memory: you tried to allocate

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

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

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

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关闭保护。 

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在拉代码前要保证你的本地工

configure: error: cannot guess build type;you must specify one

该问题一般出现在国产平台,从错误描述来看,意思是:无法猜测build类型,你必须指定一个。解决办法:1.在系统/usr路径下搜索config.guess和config.sub这两个文件。2.在当前编译工具目录下同样搜索config.guess和config.sub这两个文件。3.用系统的config.guess和config.sub文件替换当前编译工具目录下的这两个文件。4.重新执行configure。

git reset回退版本【Git异常】You are in ‘detached HEAD‘ state

一、背景gitclone项目后,在main分支回退版本,出现报错Youarein'detachedHEAD'state.Youcanlookaround,makeexperimentalchangesandcommitthem,andyoucandiscardanycommitsyoumakeinthisstatewithoutimpactinganybranchesbyswitchingbacktoabranch.Ifyouwanttocreateanewbranchtoretaincommitsyoucreate,youmaydoso(noworlater)byusing-cwiththe

解决问题:Key is invalid. You must supply a key in OpenSSH public key format

背景:我们在github上面添加秘钥的时候,保存会出现这个错误Keyisinvalid.YoumustsupplyakeyinOpenSSHpublickeyformat原因分析:这个原因是由于我们直接用工具打开id_rsa文件,然后粘贴复制上去的,但是id_rsa文件被打开之后,格式就会发生变化,所以就会一直报错解决方案:有两种解决方法:1.有一个id_rsa.pub文件,用工具打开,复制粘贴到对应的位置就可以了github成功的截图如下: 也可以使用命令验证下  2.输入命令clip 回车后就复制到剪切板了,然后在github上,添加sshkeys的地方直接就能粘贴上

Warning: You are using macOS 13.We do not provide support for this pre-release version.

安装git报错brewinstallgit解决方法:直接根据提示安装:xcode-select--install接着安装git  brewinstallgit git安装成功 

解决:mysqlclient 1.4.3 or newer is required; you have 1.0.3.

花了两天的时间卡在这个地方真的是欲哭无泪啊!小白一个,做django专题,跟着影片学学学,结果在python3manage.pymakemigrations卡到一个不行........它总是会出现以下的报错:PSC:\Users\User\PycharmProjects\mysite>python3manage.pymakemigrationsTraceback(mostrecentcalllast):File"C:\Users\User\PycharmProjects\mysite\manage.py",line15,inexecute_from_command_line(sys.argv)