# Error when install scanpy

**URL:** https://discourse.scverse.org/t/error-when-install-scanpy/787
**Category:** Help
**Created:** [October 1, 2022, 12:54pm UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787 "2022-10-01T12:54:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://discourse.scverse.org/u/Chris)
#### Post date: [October 1, 2022, 12:54pm UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787/1 "2022-10-01T12:54:38Z")

</div>

Hi all,

I want to install scanpy on Jupyter notebook so I run:

! pip3 install scanpy, I got this:

WARNING: You are using pip version 21.1.1; however, version 22.2.2 is available.  
You should consider upgrading via the ‘/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install --upgrade pip’ command.

Then: import scanpy as sc doesn’t work even though I updated pip to 22.2.2.

What did I miss in this case? Thank you!

---

<div class="post-metadata">

### Author: ![Zethson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/zethson/32/152_2.png) [@Zethson](https://discourse.scverse.org/u/Zethson)
#### Post date: [October 2, 2022, 3:28pm UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787/2 "2022-10-02T15:28:19Z")

</div>

Hi,

the warning is not relevant for your purpose here. Please ensure that you are using the correct kernel when attempting to import scanpy in your jupyter notebook.

---

<div class="post-metadata">

### Author: ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://discourse.scverse.org/u/Chris)
#### Post date: [October 2, 2022, 7:19pm UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787/3 "2022-10-02T19:19:43Z")

</div>

I got the error below which made me think the reason maybe because of the installation.

sc.pp.highly\_variable\_genes(adata, n\_top\_genes = 2000, subset = True, flavor = ‘seurat\_v3’)

ModuleNotFoundError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.8/site-packages/scanpy/preprocessing/\_highly\_variable\_genes.py in \_highly\_variable\_genes\_seurat\_v3(adata, layer, n\_top\_genes, batch\_key, check\_values, span, subset, in place)

**52** try: —\>

53 from skmisc.loess import loess

**54** except ImportError: ModuleNotFoundError: No module named ‘skmisc’

I run this code:

[https://github.com/mousepixels/sanbomics\_scripts/blob/main/single\_cell\_analysis\_complete\_class.ipynb](https://github.com/mousepixels/sanbomics_scripts/blob/main/single_cell_analysis_complete_class.ipynb)

---

<div class="post-metadata">

### Author: ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://discourse.scverse.org/u/Chris)
#### Post date: [October 5, 2022, 12:58am UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787/4 "2022-10-05T00:58:26Z")

</div>

I solved the error. Thank you.

---

<div class="post-metadata">

### Author: ![Zethson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/zethson/32/152_2.png) [@Zethson](https://discourse.scverse.org/u/Zethson)
#### Post date: [October 17, 2022, 10:38am UTC](https://discourse.scverse.org/t/error-when-install-scanpy/787/5 "2022-10-17T10:38:39Z")

</div>


