umap
umap copied to clipboard
module 'umap' has no attribute '__version__'
Hi there I am trying to run umap and i get the error: module 'umap' has no attribute 'version'
I have tried uninstalling and reinstalling umap-learn however this hasn't worked - would anyone be able to advise me how to fix this issue? I have tried advice in other threads but this hasn't worked - i've provided the code below that I am using
`#Calculate neighbors sc.pp.neighbors(adata, n_neighbors=100)
#Calculate UMAP sc.tl.umap(adata)
#Plot UMAP sc.pl.umap(adata, color=['Type']) sc.pl.umap(adata, color=adata.var_names)`
It ought to. The package __init__
from the following line onward shoudl ensure that, one way or another, some __version__
attribute gets set. It is not obvious to me why this should not be working for you. Can you provide any other information?
Hi here are the packages that I have installed at the top of my notebook
import scanpy as sc import numpy as np import scipy as sp import pandas as pd import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib import colors import seaborn as sb import scanpy.external as sce import sklearn import numba
#Import squidpy - the spatial add on for Scanpy import squidpy as sq
import umap`
I also had this problem before encountering this one - where the kernel would die when i ran the code i posted previously https://github.com/lmcinnes/umap/issues/702
thanks again for your help Rachel