ImportError: cannot import name 'IndexMixin'
See original GitHub issueHi,
When I ran
import scanpy.api as sc
I met this error:
19 from scipy import sparse
20 from scipy.sparse import issparse
---> 21 from scipy.sparse.sputils import IndexMixin
22 from natsort import natsorted
23
ImportError: cannot import name 'IndexMixin'
Is there any requirements for the version of scipy?
Thanks in advance, BP
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ImportError: cannot import name 'IndexMixin' · Issue #643
I am using Ubuntu in Windows. And when I import scanpy in jupyter notebook, I get the error: ImportError: cannot import name 'IndexMixin'...
Read more >qutip import error - Google Groups
ImportError : cannot import name 'IndexMixin' from 'scipy.sparse.sputils' (C:\Anoconda\lib\site-packages\scipy\sparse\sputils.py).
Read more >ImportError: No module named scipy.sparse - Stack Overflow
ImportError: No module named scipy.sparse. I searched and tried the following and reinstalled Scipy: sudo apt-get purge python-scipy.
Read more >ImportError: cannot import name (unknown location) - YouTube
ImportError : cannot import name 'blabla' from 'some_module' (unknown location)thanks for watchinglike this video, share, ...
Read more >How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I just tried install a higher version of scipy, and it works now.
Refer to: https://www.scipy.org
I also ran into this issue when using scanpy==1.4.2 and scipy==1.3.0 (which are the versions installed when I install using conda). Enforcing scipy==1.2.1 in my conda environment file fixed it.