In the scanpy example of the scverse best-practices book (4. Analysis frameworks and tools — Single-cell best practices, section 4.3.3) using the provided script with the provided pbmc3k dataset
When running
sc.pp.neighbors(adata, n_neighbors=10, n_pcs=40)
I get the following:
'AttributeError: module ‘psutil’ has no attribute ‘Process’
I would appreciate any help!
The packages I used in my environment are listed below:
scanpy==1.10.4 anndata==0.11.1 umap==0.5.7 numpy==1.26.4 scipy==1.14.1 pandas==2.2.3 scikit-learn==1.5.2 statsmodels==0.14.4 igraph==0.11.8 pynndescent==0.5.13