No module named 'umap'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 871
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 5
Description
Hi!
I have installed the package umap-learn in my conda environment with conda install -c conda-forge umap-learn, and I see it installated in my conda list:
...
umap-learn 0.4.6 py37hc8dfbb8_0 conda-forge
...
But when importing it to my jupyter notebook or python script, always the same error:
import umap
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-93137e0fcb10> in <module>
----> 1 import umap
ModuleNotFoundError: No module named 'umap'
Have tried too with import umap.umap_ but keeps not working...
This thing is driving my crazy. I already uninstalled and installed umap-learn three times.
Thanks! :)
-- UPDATE --
The problem is solved. I started a new environment with Python 3.7 and it works perfectly. I suspect that maybe the Python version or another package was creating a problem because the version of some background package, I don't know.
To everyone with this problem I recommend you to create a new environment, install umap-learn at the beginning and it should work.
Thanks :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names a conda environment, a Jupyter notebook or Python script, and the import umap entry point, but no repository file or test. Reproduce the import failure with the reported umap-learn installation and compare the environment where it fails with the new Python 3.7 environment described in the update. Done would require identifying a reproducible cause and confirming that import umap succeeds without creating a replacement environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100