# Psutil error when running sc.neighbors() in tutorial notebook

**URL:** <https://discourse.scverse.org/t/psutil-error-when-running-sc-neighbors-in-tutorial-notebook/3374>\
**Category:** scanpy\
**Created:** [December 5, 2024, 7:31pm UTC](https://discourse.scverse.org/t/psutil-error-when-running-sc-neighbors-in-tutorial-notebook/3374 "2024-12-05T19:31:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesoc](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mesoc](https://discourse.scverse.org/u/mesoc)\
**Post date:** [December 5, 2024, 7:31pm UTC](https://discourse.scverse.org/t/psutil-error-when-running-sc-neighbors-in-tutorial-notebook/3374/1 "2024-12-05T19:31:06Z")

</div>

In the scanpy example of the scverse best-practices book ([4. Analysis frameworks and tools — Single-cell best practices](https://www.sc-best-practices.org/introduction/analysis_tools.html), 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
