
错误汇总
在码代码期间的各类错误,解决办法
LoriaLi
这个作者很懒,什么都没留下…
展开
-
linux训练报错 SyntaxError: invalid syntax
原因:python3.7丢弃了async,目前环境使用的是python3.9。解决方式:将async全部替换为non_blocking。原创 2024-03-14 16:05:10 · 294 阅读 · 0 评论 -
libstdc++.so.6版本过低,找不到GLIBCXX_3.4.29
大概意思就是移除/usr/local/anaconda3/lib下的libstdc++.so.6,把刚才放到该路径下的libstdc++.so.6.0.29链接上。在服务器的其他文件夹中找到最高版本为6.0.28,其中也没有GLIBCXX_3.4.29。故从网友处下载libstdc++.so.6.0.29链接原有libstdc++.so.6即可使用。2.下载libstdc++.so.6.0.29到本地,并保存至服务器地址:/usr/local/anaconda3/lib下。转载 2024-02-28 16:55:53 · 2628 阅读 · 1 评论 -
git clone 出现fatal:无法访问问题解决
例如 git clone https://github.com/aboul3la/Sublist3r.git 直接进行clone 出现fatal:无法访问的问题。例如 git clone https://gitclone.com/github.com/aboul3la/Sublist3r.git。原文链接:https://blog.youkuaiyun.com/Thump123/article/details/122849998。直接在 中间加上 gitclone.com/转载 2024-02-27 10:56:00 · 560 阅读 · 2 评论 -
fatal: 无法访问 ‘https://github.com/OpenKinect/libfreenect2.git/‘:Failed to connect to github.com port 4
例如 git clone https://github.com/aboul3la/Sublist3r.git 直接进行clone 出现fatal:无法访问的问题。例如 git clone https://gitclone.com/github.com/aboul3la/Sublist3r.git。原文链接:https://blog.youkuaiyun.com/Thump123/article/details/122849998。直接在 中间加上 gitclone.com/通过大佬的方法可以运行了。转载 2024-02-26 16:46:49 · 122 阅读 · 1 评论 -
错误提示:enable anomaly detection to find the operation that failed to compute its gradient...
错误提示:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [544, 768]], which is output 0 of ViewBackward, is at version 1; expected version 0 instead.Hint: enable anomaly detect原创 2023-01-12 10:59:46 · 1489 阅读 · 0 评论 -
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the
【代码】RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the。原创 2022-11-15 21:05:52 · 3394 阅读 · 0 评论 -
Matplotlib绘图时,无法显示中文
添加如下代码import matplotlibmatplotlib.rc("font", family='Microsoft YaHei')添加代码前:添加代码后原创 2022-04-25 11:19:18 · 139 阅读 · 0 评论 -
关于WARNING:Ignoring invalid distribution -pencv-python
版权声明:本文为优快云博主「小亮子」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.youkuaiyun.com/weixin_42237861/article/details/121634033报错在安装文件时总是会出现以下警告解决办法找到上图后面括号中的目录,删掉带~开头的文件夹。这是之前安装插件失败/中途退出,导致插件安装出现异常导致的。删除后警告信息就消失了。...转载 2022-04-24 13:13:45 · 371 阅读 · 0 评论 -
pip配置环境后仍提示“不是内部或外部命令”解决办法
**因为配置好pip的环境变量后一直无法在其他文件夹中使用pip命令,找到这样一篇文章彻底解决了该问题。转载以便以后复盘使用,谢谢原博主。原文链接:https://blog.youkuaiyun.com/juzicode00/article/details/110021400**错误提示:在cmd中安装pip后,只能在puthon文件夹下的Scripts文件夹内使用。提示:‘pip’ 不是内部或外部命令,也不是可运行的程序或批处理文件。可能原因:安装时没有勾选添加path路径,下图是安装时的正确做法转载 2022-04-24 10:37:51 · 4414 阅读 · 4 评论