Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Problem in importing UMAP while importing bertopic

$
0
0

So everything worked fine with my code and then suddenly the hdbscan was not working anymore, than I re-instaled all packages and now I have a problem with umap.

I did what was suggested here and in other foruns and uninstalled and re-installed both umap-learn and bertopic . I can import umap as import umap or import umap.umap_ as UMAP , the problem is when I import bertopic. I tried:

import bertopic

and

import umap.umap_ as UMAPimport bertopic

and

import umapimport bertopic

and

import umapfrom bertopic import BERTopic

and finally:

import umap.umap_ as UMAPfrom bertopic import BERTopic

In all situations, the problem occurs when I'm importing bertopic: ImportError: cannot import name 'UMAP' from 'umap' (unknown location) . I also reboot the machine a several times. I don't think that issue is related to the environment, because I have been using the same environment before when the same code was working: Python 3.10.7 and Visual Code Studio 1.74.3 . The bertopic is version 0.13.0 and umap-learn version 0.5.3


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>