Help importing scvi in conda environment on new Mac M1

using anaconda enviornment (base root) → jupyter

Python code:

!pip3 install scvi-tools

output:
successful

import scvi

output:

Global seed set to 0
/Users/opt/anaconda3/lib/python3.9/site-packages/pytorch_lightning/utilities/warnings.py:53: 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.
new_rank_zero_deprecation(
/Users/opt/anaconda3/lib/python3.9/site-packages/pytorch_lightning/utilities/warnings.py:58: 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)

output:
AttributeError Traceback (most recent call last)
/var/folders/mc/hj0njpys5y532ylfj7_qkzsw0000gn/T/ipykernel_71657/3188852405.py 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)