2 artifacts
Tap to collapse details
Install Python 3.10+: Download from python.org.
Create virtual environment:
python -m venv langchain-env source langchain-env/bin/activate # On Windows: langchain-env\Scripts\activate
Install LangChain:
pip install langchain
Get API Key: Sign up at Anthropic or OpenAI, set env var:
export ANTHROPIC_API_KEY='your-key-here'
Verify: Run python -c "import langchain; print(langchain.__version__)".
python -c "import langchain; print(langchain.__version__)"
❌ Using global Python install leading to conflicts
→Always use virtual environments
❌ Forgetting to activate venv
→Run activation command before pip install
Tap to expand details
Spin up a personalized “learn LangChain” plan you can save, check off, and return to anytime — unlimited on the free trial.
LangChain Academy
Udemy
by Ben Auffarth
Comprehensive guides, quickstarts, API reference
Source code, examples, contributions
Debugging, evaluation, deployment platform
Build stateful agents