为什么我在执行PCA时收到此错误:- 属性错误:'NoneType'对象没有属性'split'


import pandas as pd 
import numpy as np 
import seaborn as sns
wine=pd.read_csv('winequality-red.csv')
from imblearn.over_sampling import SMOTE
wine_x=wine.iloc[:,0:-1]
wine_y=wine.iloc[:,-1]
smt=SMOTE()
x,y=smt.fit_resample(wine_x,wine_y)

在我拟合它的最后一个代码中,我得到了AttributeError。

File ~anaconda3libsite-packagesthreadpoolctl.py:646, in _OpenBLASModule.get_version(self)
643 get_config = getattr(self._dynlib, "openblas_get_config",
644                      lambda: None)
645 get_config.restype = ctypes.c_char_p
--> 646 config = get_config().split()
647 if config[0] == b"OpenBLAS":
648     return config[1].decode("utf-8")
> AttributeError: 'NoneType' object has no attribute 'split'

我该如何纠正?

我在尝试训练MiniBatchKMeans模型时遇到了同样的问题。我通过将Python版本从3.9更改为3.8或3.7 解决了这个问题

最新更新