- 博客(12)
- 收藏
- 关注
原创 解决cryptography库报错【DLL load failed while importing _rust】
ImportError: DLL load failed while importing _rust: 找不到指定的程序。可能是cryptography的版本不对导致的,本人安装的是42.0.5的版本,查看版本的方法如下。安装低版本的 cryptography。
2024-03-12 22:34:43
10357
10
原创 OSError: cannot load library ‘libsndfile.so‘: libsndfile.so: cannot open shared object file: No such
安装 libsndfile1。
2024-01-24 10:47:33
1386
原创 解决OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory
卸载torchaudio,重新安装最新版本。相应的安装命令直接在上述网址能直接复制。:卸载torch,重新安装最新版本。
2023-09-18 14:53:39
6909
原创 Windows CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘
Windows CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’问题描述使用windows的cmd,创建了环境,当需要进入环境时:conda activate ***出现问题,如下:解决方案切换到baseactivate然后激活环境:conda activate ***...
2020-12-28 11:34:20
863
原创 【关于归一化与反归一化数据统一的问题】:训练集与测试集必须使用同一参数的归一化与反归一化
问题描述:在建立回归模型时,往往需要对数据进行归一化和反归一化。然而,一定要注意训练集与测试集使用的归一化参数必须统一!!常用的归一化方法有很多,这里以sklearn的MinMaxScale()为例,下面讲述了归一化和反归一化在建模中的详细过程。先看一个最普通的归一化例子:import numpy as npfrom sklearn.preprocessing import MinMa...
2020-01-06 13:32:30
22870
21
原创 【解决str.contains()问题】ValueError: cannot index with vector containing NA / NaN values
问题描述;当使用dataframe执行如下操作:df[df.line.str.contains('G')]目的是:找出df中line列中包含字符’G’的所有行时,出现如下问题:---------------------------------------------------------------------------ValueError ...
2020-01-05 16:51:09
6380
1
原创 【解决python,xgboost问题】XGBoostError: sklearn needs to be installed in order to use this module
问题描述:众所周知,要使用python的库xgboost必须要提前安装好sklearn。但是,当我们xgboost和sklearn都安装了,本人在执行以下代码时:model_regr = xgboost.XGBRegressor(booster='gbtree', silent=1, nthread=-1, ...
2020-01-03 20:50:19
6434
6
原创 三步解决问题:python的PermissionError: [WinError 5] 拒绝访问
三步解决问题:python的PermissionError: [WinError 5] 拒绝访问问题描述:1.当你卸载python库的时候,如:pip uninstall pandas2.当你想要更新python库的时候,如:pip install --upgrade pandas等等… 就会出现PermissionError: [WinError 5] 问题废话不多说,分三步完全解决...
2020-01-02 23:38:31
37767
11
原创 IndexError: list index out of range的错误原因及解决方案
本人在读取txt文件时遇到IndexError: list index out of range如下图:于是检查错误原因,加入如下代码:以指导rows一共有20662行,往下翻结果,还是报错了:意味着在读取rows的第9411行时出错了,这意味在9411可能存在list[index]的index超出范围,或者出现list[0]的原因。因此只要跳过index超出范围,或者出现list...
2018-12-04 14:49:23
211135
36
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人