Skip to content

Python Virtual Environment

To run the examples in this tutorial, you'll need to install a few python modules. It's recommended to use a virtual environment when installing modules. Please refer to the virtual environment documentation to learn more.

Windows Setup

# Create a virtual enviromnent named `venv`.
python -m venv venv
# Activate the virtual environment
venv\Scripts\activate
# Install the modules
pip install requests langchain-openai openai

Mac/Linux Setup

# Create a virtual enviromnent named `venv`.
python -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install the modules
pip install requests langchain-openai openai