Help importing scvi in conda environment on new Mac M1

using anaconda enviornment (base root) → jupyter

Python code:

!pip3 install scvi-tools


import scvi


Global seed set to 0
/Users/opt/anaconda3/lib/python3.9/site-packages/pytorch_lightning/utilities/ LightningDeprecationWarning: pytorch_lightning.utilities.warnings.rank_zero_deprecation has been deprecated in v1.6 and will be removed in v1.8. Use the equivalent function from the pytorch_lightning.utilities.rank_zero module instead.
/Users/opt/anaconda3/lib/python3.9/site-packages/pytorch_lightning/utilities/ LightningDeprecationWarning: The pytorch_lightning.loggers.base.rank_zero_experiment is deprecated in v1.7 and will be removed in v1.9. Please use pytorch_lightning.loggers.logger.rank_zero_experiment instead.
return new_rank_zero_deprecation(*args, **kwargs)

Model = scvi.model.scvi.load(‘model.model’,adata)

AttributeError Traceback (most recent call last)
/var/folders/mc/hj0njpys5y532ylfj7_qkzsw0000gn/T/ipykernel_71657/ in

I’m confused on how to fix this error.

Thank you

Can you share the full traceback of the error? Something to note with M1 macs is that you need to use scvi-tools with a native version of python (arm, not x86)