import numpy as np
#import matplotlib.pyplot as plt
from sklearn.datasets import make_blobs
from sklearn.cluster import KMeans
def KMeans():
data = open("testSet.txt", r)
nums = []
for x in data.read().split():
nums.append(float(x))
data.close()
print(nums)
不确定为什么我的“ from . import _iterative
”模块无法正常工作。
错误消息:
File "C:\Users\Randy\Anaconda3\Lib\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 10, in <module>
from . import _iterative
builtins.ImportError: DLL load failed: The specified module could not be found.