在虚拟环境中安装的hdbscan,一import就报错,说是Memory.init() got an unexpected keyword argument 'cachedir',咋回事儿啊,头都要挠秃了
供参考
https://github.com/eternal1025/joblib/blob/master/TODO.rst
重新安装
C:\Users>pip install hdbscan
Collecting hdbscan
Using cached hdbscan-0.8.27.tar.gz (6.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: scikit-learn>=0.20 in d:\python362\lib\site-packages (from hdbscan) (0.24.2)
Requirement already satisfied: scipy>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.5.4)
Requirement already satisfied: joblib>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.0.1)
Requirement already satisfied: numpy>=1.16 in d:\python362\lib\site-packages (from hdbscan) (1.19.5)
Requirement already satisfied: cython>=0.27 in d:\python362\lib\site-packages (from hdbscan) (0.29.10)
Requirement already satisfied: six in d:\python362\lib\site-packages (from hdbscan) (1.16.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\python362\lib\site-packages (from scikit-learn>=0.20->hdbscan) (2.1.0)
Building wheels for collected packages: hdbscan
Building wheel for hdbscan (PEP 517) ... done
Created wheel for hdbscan: filename=hdbscan-0.8.27-cp36-cp36m-win_amd64.whl size=633614 sha256=a993315ca46394729a72adb1746e77ed4ff8d46334a8ab2050b5ecb8000d06f2
Stored in directory: c:\users\appdata\local\pip\cache\wheels\70\52\fe\83ef5a0e879c48df9968d931d41046226e4cb19a166f0223d2
Successfully built hdbscan
Installing collected packages: hdbscan
Successfully installed hdbscan-0.8.27