作者:喵喵妈70929 | 来源:互联网 | 2023-09-12 17:43
我知道以前有很多人发布过关于此的信息,但我仍然无法解决我的错误。我正在尝试导入hdbscan但它一直返回以下错误-----------------------
我知道以前有很多人发布过关于此的信息,但我仍然无法解决我的错误。我正在尝试导入 hdbscan 但它一直返回以下错误
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
2 import numpy as np
3 from pyproj import Transformer
----> 4 import hdbscan
5 from scipy.spatial.qhull import ConvexHull
6 from shapely.geometry import Point
~/Library/Python/3.7/lib/python/site-packages/hdbscan/__init__.py in
----> 1 from .hdbscan_ import HDBSCAN, hdbscan
2 from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage
3 from .validity import validity_index
4 from .prediction import (approximate_predict,
5 membership_vector,
~/Library/Python/3.7/lib/python/site-packages/hdbscan/hdbscan_.py in
19 from scipy.sparse import csgraph
20
---> 21 from ._hdbscan_linkage import (single_linkage,
22 mst_linkage_core,
23 mst_linkage_core_vector,
hdbscan/_hdbscan_linkage.pyx in init hdbscan._hdbscan_linkage()
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
我曾尝试卸载 numpy 1.19.5 并安装 numpy 1.20,但它对我不起作用。我已经安装了 hdbscan 0.8.27 软件包,我使用的是 Python 3.7.2,但我没有 MacBook 的管理员权限。感谢任何帮助!