直到几天前,我使用 scanpy 库的代码运行良好,但昨晚它坏了并给我带来了一个新错误
Traceback (most recent call last):
File "./scanpy_normalization.py", line 4, in <module>
import scanpy.api as sc
File "/usr/local/lib/python3.8/site-packages/scanpy/api/__init__.py", line 27, in <module>
from . import pl
File "/usr/local/lib/python3.8/site-packages/scanpy/api/pl.py", line 1, in <module>
from ..plotting._anndata import scatter, violin, ranking, clustermap, stacked_violin, heatmap, dotplot, matrixplot, tracksplot
ImportError: cannot import name 'stacked_violin' from 'scanpy.plotting._anndata' (/usr/local/lib/python3.8/site-packages/scanpy/plotting/_anndata.py
我将scanpy导入为
import scanpy.api as sc
每次运行代码时,我都会更新到最新版本的 scanpy(如果有)。我错过的最后几天有变化吗?帮助表示赞赏!