JustGlowing/minisom

cannot import name 'Minisom' from 'minisom' (C:\Users\Username\anaconda3\lib\site-packages\minisom.py)

VishnuRamD opened this issue · 4 comments

How to solve this import error?

ImportError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_36828/4140886123.py in
1 # minisom
----> 2 from minisom import Minisom
3 from sklearn.datasets import load_breast_cancer
4 import time

ImportError: cannot import name 'Minisom' from 'minisom' (C:\Users\Username\anaconda3\lib\site-packages\minisom.py)

hi there,

How did you install minisom?

This are the instructions if you want to use pip: https://github.com/JustGlowing/minisom#installation

Yes I used pip install minisom only

Make sure that the pip your are using is the one tied to the python used to run your script.

This can help: https://docs.python.org/3/tutorial/venv.html

Oh My bad I used Lower case "s" in MiniSom. Anyway thanks for quick response