Hi, I’m trying to import scanpy but got this error:
ImportError Traceback (most recent call last)
/var/folders/tw/z6c3ybt91xl2qvshxxpqtc100000gn/T/ipykernel_38646/912249142.py in
----> 1 import scanpy as sc
~/opt/anaconda3/lib/python3.9/site-packages/scanpy/init.py in
4
5 if not within_flit(): # see function docstring on why this is there
----> 6 from ._utils import check_versions
7
8 check_versions()
~/opt/anaconda3/lib/python3.9/site-packages/scanpy/_utils/init.py in
18 import numpy as np
19 from numpy import random
—> 20 from scipy import sparse
21 from anndata import AnnData, version as anndata_version
22 from textwrap import dedent
~/opt/anaconda3/lib/python3.9/site-packages/scipy/init.py in getattr(name)
209 def getattr(name):
210 if name in submodules:
→ 211 return _importlib.import_module(f’scipy.{name}')
212 else:
213 try:
~/opt/anaconda3/lib/python3.9/importlib/init.py in import_module(name, package)
125 break
126 level += 1
→ 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/init.py in
281
282 # For backward compatibility with v0.19.
→ 283 from . import csgraph
284
285 # Deprecated namespaces, to be removed in v2.0.0
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/csgraph/init.py in
180 ‘NegativeCycleError’]
181
→ 182 from ._laplacian import laplacian
183 from ._shortest_path import (
184 shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson,
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/csgraph/_laplacian.py in
5 import numpy as np
6 from scipy.sparse import isspmatrix
----> 7 from scipy.sparse.linalg import LinearOperator
8
9
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/linalg/init.py in
121 from ._dsolve import *
122 from ._interface import *
→ 123 from ._eigen import *
124 from ._matfuncs import *
125 from ._onenormest import *
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/init.py in
7
8 “”"
----> 9 from .arpack import *
10 from .lobpcg import *
11 from ._svds import svds
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/arpack/init.py in
18
19 “”"
—> 20 from .arpack import *
~/opt/anaconda3/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/arpack/arpack.py in
40 all = [‘eigs’, ‘eigsh’, ‘ArpackError’, ‘ArpackNoConvergence’]
41
—> 42 from . import _arpack
43 arpack_int = _arpack.timing.nbx.dtype
44
I’m on MacOS. Any help is appreciated!