
装库、报错、异常解决等
文章平均质量分 54
记录学习编程技术过程中遇到的报错、异常等的解决方法。
幸运 lucky
做的所有努力都是为了降低不确定性,提升概率。
展开
-
在 Python 中确定一个数字是否等于 0,考虑精度问题
在 Python 中确定一个数字是否等于 0,考虑精度问题原创 2024-02-27 20:21:16 · 1242 阅读 · 0 评论 -
在 Jupyter Notebook 中查看所使用的 Python 版本和 Python 解释器路径
在 Jupyter Notebook 中查看所使用的 Python 版本和 Python 解释器路径原创 2024-02-23 15:42:11 · 3060 阅读 · 0 评论 -
为什么从没有负值的数据中绘制的小提琴图(Violin Plot)会出现负值部分?
解析:为什么从没有负值的数据中绘制的小提琴图(Violin Plot)会出现负值部分?原创 2024-02-19 12:15:04 · 3601 阅读 · 0 评论 -
scikit-learn 1.3.X 版本 bug - F1 分数计算错误
检测这个错误的方法:如果想要确定某个 F1 分数计算是否受到这个错误的影响,可以先使用 classification_report() 函数进行 F1 分数的计算。如果存在任何一个类别的查准率和召回率都为 0,而对应的 F1 分数为 1.0 或 nan,那么这个 F1 分数的计算就是错误的。两者的分母不同,查准率的分母是预测结果的样本数,召回率的分母是样本标签的样本数。,那么根据 zero_division 参数的设定,F1 分数可能被赋值为 1.0 或 np.nan,而非正确的 0.0。原创 2024-02-04 11:55:22 · 973 阅读 · 0 评论 -
Git 教程 | 将本地修改后的文件推送到 Github 指定远程分支上
Git 教程 | 将本地修改后的文件推送到 Github 指定远程分支上原创 2024-01-25 19:31:31 · 1126 阅读 · 1 评论 -
数据竞赛复现代码的 Docker 镜像制作指南
通过Dockerfile文件创建 Docker 镜像,数据 + 程序文件将以只读的方式挂载在容器内的 /data 目录下,使用相对路径,如 “./data/XX”。安装好 Python 项目的依赖库。程序入口要求:务必封装入口脚本run.sh,放置于镜像工作目录(如果在 Dockerfile 中指定了工作目录,请放在对应目录下)。原创 2023-06-28 09:33:21 · 889 阅读 · 0 评论 -
图机器学习 | PyG 安装配置记录
图机器学习 | PyG 安装配置记录原创 2022-12-27 15:49:54 · 1139 阅读 · 0 评论 -
sweetviz 生成的 HTML 报告里图表中的中文显示乱码 解决方法
sweetviz 生成的 HTML 报告里图表中的中文显示乱码 解决方法原创 2022-12-22 17:43:07 · 964 阅读 · 0 评论 -
成功解决 ModuleNotFoundError: No module named ‘gluonts.torch.modules.distribution_output‘
成功解决 ModuleNotFoundError: No module named 'gluonts.torch.modules.distribution_output'原创 2022-12-17 13:54:38 · 2406 阅读 · 0 评论 -
2022 最新 R 语言 与 RStudio 安装配置教程
2022 最新 R 语言 与 RStudio 安装配置教程原创 2022-10-24 18:40:22 · 21768 阅读 · 6 评论 -
AutoGluon GPU 版本 安装配置教程
AutoGluon GPU 版本 安装配置教程原创 2022-10-24 10:28:25 · 3594 阅读 · 0 评论 -
成功解决 OSError: libcusparse.so.11: cannot open shared object file: No such file or directory
成功解决 OSError: libcusparse.so.11: cannot open shared object file: No such file or directory原创 2022-10-16 21:56:25 · 2574 阅读 · 0 评论 -
FutureWarning: pandas.Int64Index is deprecated and will be removed ... in a future version. 解决方法
FutureWarning: pandas.Int64Index is deprecated and will be removed ... in a future version. 解决方法原创 2022-10-16 18:45:09 · 4305 阅读 · 0 评论 -
tensorly | ImportError: cannot import name ‘check_random_state‘ from ‘tensorly.random‘ 解决方法
tensorly | ImportError: cannot import name ‘check_random_state‘ from ‘tensorly.random‘ 解决方法原创 2022-10-11 21:47:34 · 1097 阅读 · 0 评论 -
深度森林deep-forest | ImportError: cannot import name ‘_joblib_parallel_args‘ from ‘sklearn.utils.fixes‘
深度森林deep-forest | ImportError: cannot import name '_joblib_parallel_args' from 'sklearn.utils.fixes'原创 2022-10-02 12:02:01 · 3333 阅读 · 1 评论 -
Cytoscape 安装教程 | Network Data Integration, Analysis, and Visualization in a Box
Cytoscape 安装教程Network Data Integration, Analysis, and Visualization in a Box原创 2022-09-02 22:07:15 · 2116 阅读 · 0 评论 -
AttributeError: module ‘seaborn‘ has no attribute ‘histplot‘
AttributeError: module 'seaborn' has no attribute 'histplot'原创 2022-07-23 15:44:12 · 7844 阅读 · 1 评论 -
Word2019 未找到 MathPage.wll 文件的解决方法
Word2019 未找到 MathPage.wll 文件的解决方法原创 2022-07-16 16:09:13 · 4271 阅读 · 0 评论 -
CUDA 下 DGL 库安装
图机器学习 | CUDA 下 DGL 库安装原创 2022-07-11 22:42:34 · 2617 阅读 · 0 评论 -
PyGOD 使用 成功解决 Runtimeerror: No such operator torch_sparse::hetero_neighbor_sample 报错
PyGOD 使用 成功解决 Runtimeerror: No such operator torch_sparse::hetero_neighbor_sample 报错原创 2022-07-08 12:39:45 · 1466 阅读 · 0 评论 -
Python 成功解决报错 asyncio RuntimeError: This event loop is already running
Python 成功解决报错 asyncio RuntimeError: This event loop is already running原创 2022-07-03 19:50:25 · 2139 阅读 · 0 评论 -
MIMIC-III 数据集处理 | OverflowError: Overflow in int64 addition 解决方法
MIMIC-III 数据集处理 | OverflowError: Overflow in int64 addition 解决方法原创 2022-07-02 15:48:26 · 1400 阅读 · 2 评论 -
PyCaret 成功解决无法从‘sklearn.model_selection._search‘导入名称“_check_param_grid”
PyCaret 成功解决无法从'sklearn.model_selection._search'导入名称“_check_param_grid”原创 2022-06-23 12:36:39 · 1373 阅读 · 0 评论 -
成功解决python.exe 无法找到入口 无法定位程序输入点
成功解决python.exe 无法找到入口 无法定位程序输入点原创 2022-06-22 23:41:29 · 6580 阅读 · 3 评论 -
安装 CPU 版本 GluonTS 过程记录 踩坑
安装 CPU 版本 GluonTS 过程记录 踩坑原创 2022-05-01 15:37:52 · 1564 阅读 · 1 评论 -
解决Google colab上安装GPU版本mxnet报错:libnvrtc.so.11.2: cannot open shared object file: No such file...
解决Google colab上安装GPU版本mxnet报错:libnvrtc.so.11.2: cannot open shared object file: No such file...原创 2022-07-15 15:48:14 · 3171 阅读 · 1 评论 -
MXNet GluonTS使用报错:OSError: libnccl.so.2: cannot open shared object file: No such file or directory
在使用租用的 GPU 服务器安装 GluonTS 做时间序列预测有关的项目时,报错如下:OSError: libnccl.so.2: cannot open shared object file: No such file or directory解决方法:去 NVIDIA 官网下载跟你 CUDA 版本和操作系统(我的是Ubuntu20.04)适配的 NCCL 文件,然后配置一下。原创 2022-04-29 20:06:25 · 6748 阅读 · 4 评论 -
解决TabError: inconsistent use of tabs and spaces in indentation
解决TabError: inconsistent use of tabs and spaces in indentation原创 2022-03-27 20:32:42 · 2315 阅读 · 0 评论 -
Spyder启动报错:ModuleNotFoundError: No module named ‘PyQt5.QtWebKitWidgets‘ 解决方法
Spyder启动报错 | ModuleNotFoundError: No module named ‘PyQt5.QtWebKitWidgets‘解决办法:单独安装WebEngine,安装命令为:pip install PyQtWebEngine -i http://pypi.douban.com/simple --trusted-host pypi.douban.com然后可以正常进入 Spyder 了。原创 2022-03-11 18:31:09 · 6756 阅读 · 4 评论 -
安装PyTorch后jupyter notebook中仍出现“No module named torch“
安装好 PyTorch1.5.0 之后,在 Anaconda Prompt 中激活新创建的环境变量之后,import torch 并 print(torch.version)没有问题,说明 PyTorch 已经安装成功。但是打开 Jupyter Notebook 后 import torch 却提示 “No module named torch”我们还需要在这个环境安装 jupyter notebook 的一系列依赖库conda install jupyter接着在这个环境变量中安装nb_conda原创 2022-03-01 21:06:42 · 6487 阅读 · 10 评论 -
pyLDAvis安装和使用 | AttributeError: module ‘pyLDAvis‘ has no attribute ‘gensim‘ | 可视化结果导出为独立网页
pyLDAvis安装和使用AttributeError: module ‘pyLDAvis‘ has no attribute ‘gensim‘ 可视化结果导出为独立网页原创 2022-02-14 21:44:03 · 18048 阅读 · 10 评论 -
import statsmodels.api as sm 时 ImportError: DLL load failed while importing _arpack: 找不到指定的程序。
ImportError: DLL load failed while importing _arpackscipy==1.6.0后,问题解决了原创 2022-02-11 16:52:34 · 3691 阅读 · 0 评论 -
解决方法:opencv读取中文路径图像报错 | AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
AttributeError: ‘NoneType‘ object has no attribute ‘astype‘在使用开源项目 blind_watermark 给图像添加数字盲水印时,传入图像路径中文时,会出现以上报错。分析它的源码:原创 2022-03-11 18:34:50 · 2527 阅读 · 1 评论 -
ImportError: cannot import name ‘_maybe_get_pandas_wrapper_freq‘ from ‘statsmodels.tsa.filters._util
ImportError: cannot import name ‘_maybe_get_pandas_wrapper_freq‘ from ‘statsmodels.tsa.filters._util原创 2022-02-08 21:32:40 · 2293 阅读 · 0 评论 -
Python | pynlpir库 | pynlpir.LicenseError:Your license appears to have expired. Try running “pynlpir“
Python | pynlpir库 | pynlpir.LicenseError:Your license appears to have expired. Try running “pynlpir“原创 2022-06-23 21:27:54 · 1731 阅读 · 0 评论 -
yum安装与pip安装的区别
文章目录1、yum安装2、pip安装3、仓库源区别4、安装内容区别5、推荐阅读原创 2022-01-26 17:16:04 · 4319 阅读 · 1 评论 -
Quartus13 | 安装 Modelsim 报错解决方法
http://www.openedv.com/forum.php?mod=viewthread&tid=275980&highlight=modelsimhttps://pan.baidu.com/s/1lWPzHaDmAmqQwG5UZEaJ0w 提取码:f0r0原创 2022-01-26 17:12:45 · 1401 阅读 · 0 评论 -
解决Python3将数据保存为json,中文显示为Unicode编码的问题
解决Python3将数据保存为json,中文显示为Unicode编码的问题原创 2022-02-03 19:45:19 · 13322 阅读 · 3 评论 -
InvocationException: GraphViz‘s exe 解决决策树可视化绘图时报错
文章目录一、问题二、解决方法一、问题在学习机器学习决策树算法时,想把决策树算法生成的模型使用画图的方式展示出来,遇到如下图的报错:这是因为没有安装GraphViz’s executables!!二、解决方法官方:https://graphviz.org/download/,到官网下载 Windows 对应的Stable Windows install packages,下载到本地是exe文件,安装如下:安装步骤就几步,很简单,第三步要注意将其添加进环境变量中即可,还有下载到自定义目录好一些原创 2021-11-25 09:00:00 · 1851 阅读 · 1 评论 -
matplotlib scatter画图报错:TypeError: ufunc ‘sqrt‘ not supported for the input types...rule ‘‘safe‘‘
报错如下:解决方法如下:原程序:plt.scatter(x, y, ‘r’, label=‘Original scatter’)修改为:plt.scatter(x, y, c=‘r’, label=‘Original scatter’)颜色设置参数设置为:c=‘r’成功解决问题,如下所示:...原创 2021-11-14 12:49:39 · 1764 阅读 · 0 评论