# How to set jupyterlab to use nexus as pypi(pip) repository

**URL:** <https://discourse.jupyter.org/t/how-to-set-jupyterlab-to-use-nexus-as-pypi-pip-repository/16391>\
**Category:** JupyterLab\
**Tags:** help-wanted\
**Created:** [October 18, 2022, 12:32am UTC](https://discourse.jupyter.org/t/how-to-set-jupyterlab-to-use-nexus-as-pypi-pip-repository/16391 "2022-10-18T00:32:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sso\_Kim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sso_kim/32/8024_2.png) [@Sso\_Kim](https://discourse.jupyter.org/u/Sso_Kim)\
**Post date:** [October 18, 2022, 12:32am UTC](https://discourse.jupyter.org/t/how-to-set-jupyterlab-to-use-nexus-as-pypi-pip-repository/16391/1 "2022-10-18T00:32:50Z")

</div>

Hi  
I’m building custom JupyterLab docker image from official jupyter notebook docker images.  
right now, I’m struggling with setting nexus repo as pip repo.  
there is no pip.conf file inside jupyter notebook image, and also python which is used by jupyter is conda env so i’m confused where to create pip conf file.

Is there anyone who can help me with setting nexus as pip repo for jupyter?

---

<div class="post-metadata">

**Author:** ![mcrutch](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mcrutch/32/2788_2.png) [@mcrutch](https://discourse.jupyter.org/u/mcrutch)\
**Post date:** [October 18, 2022, 5:08pm UTC](https://discourse.jupyter.org/t/how-to-set-jupyterlab-to-use-nexus-as-pypi-pip-repository/16391/2 "2022-10-18T17:08:48Z")

</div>

We build from jupyter/base-notebook and created /etc/pip.conf in our image to point to our own repos and it works fine from notebooks

---

<div class="post-metadata">

**Author:** ![Sso\_Kim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sso_kim/32/8024_2.png) [@Sso\_Kim](https://discourse.jupyter.org/u/Sso_Kim)\
**Post date:** [November 1, 2022, 4:31am UTC](https://discourse.jupyter.org/t/how-to-set-jupyterlab-to-use-nexus-as-pypi-pip-repository/16391/3 "2022-11-01T04:31:33Z")

</div>

thank you. @mcrutch

For people who need specific solutions,  
We added these lines on our base docker image and it works well.

RUN touch /etc/pip.conf &&   
set -x &&   
echo -e “[global]\n  
index-url={nexus url}  
trusted-host={nexus host}” \> /etc/pip.conf
