0

I am having a hard time to manual importing hdbscan. For some professional reasons I can't install it via pip. But I'd like to manually import it by from its package file downloaded from pypy.org .

I set the path to the file location :

import sys
sys.path.append('C:\\Users\\...\\manual_libs')

But when I import hdbscan I get the folowwing error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-46-3f5a460d7435> in <module>
----> 1 import hdbscan

~\...\manual_libs\hdbscan\__init__.py in <module>
----> 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,

~\...\manual_libs\hdbscan\hdbscan_.py in <module>
     18 from scipy.sparse import csgraph
     19 
---> 20 from ._hdbscan_linkage import (
     21     single_linkage,
     22     mst_linkage_core,

ModuleNotFoundError: No module named 'hdbscan._hdbscan_linkage'

here's the content of hdbscan file :

enter image description here

The module is there but somehow it doesn't see it. Any ideas how to fix this ?

Artashes
  • 102
  • 1
  • 9

0 Answers0