Thursday, March 14, 2019

[solved]ImportError: cannot import name 'neighbors' with Jupyter notebook

import scanpy as sc

/usr/local/lib/python3.6/dist-packages/scanpy/preprocessing/init.py in <module>() 7 from ._combat import combat 8 ----> 9 from ..neighbors import neighbors
ImportError: cannot import name 'neighbors'




I came across that error and found the cause:
I upgraded scanpy while jupyter was still running.

Solution: restart jupyter notebook

No comments:

Post a Comment