# Help importing scvi in conda environment on new Mac M1

**URL:** <https://discourse.scverse.org/t/help-importing-scvi-in-conda-environment-on-new-mac-m1/1014>\
**Category:** Help\
**Tags:** scvi\
**Created:** [December 20, 2022, 7:25am UTC](https://discourse.scverse.org/t/help-importing-scvi-in-conda-environment-on-new-mac-m1/1014 "2022-12-20T07:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sslone04](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/sslone04/32/481_2.png) [@sslone04](https://discourse.scverse.org/u/sslone04)\
**Post date:** [December 20, 2022, 7:25am UTC](https://discourse.scverse.org/t/help-importing-scvi-in-conda-environment-on-new-mac-m1/1014/1 "2022-12-20T07:25:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adamgayoso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/adamgayoso/32/100_2.png) [@adamgayoso](https://discourse.scverse.org/u/adamgayoso)\
**Post date:** [December 20, 2022, 6:29pm UTC](https://discourse.scverse.org/t/help-importing-scvi-in-conda-environment-on-new-mac-m1/1014/2 "2022-12-20T18:29:43Z")

</div>

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)
