---
title: 'Setting Up a Conda Virtual Environment with JupyterAi Support'
url: 'https://mcavdar.com/blog/setting-up-a-conda-virtual-environment-with-jupyterai-support'
markdown: 'https://mcavdar.com/blog/setting-up-a-conda-virtual-environment-with-jupyterai-support.md'
date: '2026-07-28'
description: "If you enjoy working with Jupyter Notebooks/Lab or JupyterAI, you can use this template to easily set up your virtual environment. Setting Up LlamaIndex and Jupyter-AI with Conda Here's how to set up LlamaIndex and Jupyter-AI using Conda, with a touch of pip to install the langchain-ollama package,…"
taxonomy:
  tag:
    - python
    - llamaindex
    - ollama
    - conda
    - virtual_environment
    - jupyter-ai
    - jupyterlab
    - jupyter
---

## [Setting Up a Conda Virtual Environment with JupyterAi Support](https://mcavdar.com/blog/setting-up-a-conda-virtual-environment-with-jupyterai-support)

    28th Jul 2026   [python](https://mcavdar.com/tag:python#body-wrapper) [llamaindex](https://mcavdar.com/tag:llamaindex#body-wrapper) [ollama](https://mcavdar.com/tag:ollama#body-wrapper) [conda](https://mcavdar.com/tag:conda#body-wrapper) [virtual\_environment](https://mcavdar.com/tag:virtual_environment#body-wrapper) [jupyter-ai](https://mcavdar.com/tag:jupyter-ai#body-wrapper) [jupyterlab](https://mcavdar.com/tag:jupyterlab#body-wrapper) [jupyter](https://mcavdar.com/tag:jupyter#body-wrapper)  

If you enjoy working with Jupyter Notebooks/Lab or JupyterAI, you can use this template to easily set up your virtual environment.

**Setting Up LlamaIndex and Jupyter-AI with Conda**
Here's how to set up **LlamaIndex** and **Jupyter-AI** using Conda, with a touch of **pip** to install the `langchain-ollama` package, which isn't available through Conda (see: [langchain-ollama on Anaconda](https://anaconda.org/search?q=langchain-ollama)).

```
# install conda
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
```

```
# Activate Conda (adjust the path if necessary)
source ~/miniconda3/bin/activate

# Create a new Conda environment with LlamaIndex and Jupyter-AI from conda-forge
conda create -n llama-index -c conda-forge llama-index jupyter-ai

# Activate the newly created Conda environment
conda activate llama-index

# Install the langchain-ollama package using pip (not available via Conda)
pip install langchain-ollama==0.1.0
```

Now you’re all set! Enjoy working in your new environment.🚀

```
# Launch JupyterLab for interactive development and AI integration
jupyter lab
```

 [ Previous Post](https://mcavdar.com/blog/testing-langsmith-evaluator) [Next Post ](https://mcavdar.com/blog/running-base-pretrained-models)

#### Syndicate

 [ Atom 1.0](https://mcavdar.com/blog.atom) [ RSS](https://mcavdar.com/blog.rss)

---

## Navigation

- Parent: [Blog](https://mcavdar.com/index.md)
- Previous: [Running Base / Pretrained Models](https://mcavdar.com/blog/running-base-pretrained-models.md)
- Next: [Testing Langsmith Evaluator](https://mcavdar.com/blog/testing-langsmith-evaluator.md)
