Module 'scvi' has no attribute 'data'

When I was running the code of the example scANVI, I encountered the following error:
File “D:\software\anaconda3\envs\pyro1_8_1\lib\site-packages\pyro\contrib\examples\scanvi_data.py”, line 132, in get_data
adata = scvi.data.purified_pbmc_dataset(
AttributeError: module ‘scvi’ has no attribute ‘data’

This issue might be relevant: AttributeError: module 'scvi' has no attribute 'data' · Issue #824 · scverse/scvi-tools · GitHub

1 Like

seems to work fine for me. make sure you’ve done pip install scvi-tools. e.g. my pip freeze | grep scvi looks like this:

scvi-tools==0.15.5