Skip to content
Python

build: run the Docker image on Python 3.13, and set up with it in the README

Yijia-Xiao76a93480ddcd
diff --git a/Dockerfile b/Dockerfile
index 024c7c72d..19469e5c4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.12-slim AS builder
+FROM python:3.13-slim AS builder
ENV PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
@@ -10,7 +10,7 @@ WORKDIR /build
COPY . .
RUN pip install --no-cache-dir .
-FROM python:3.12-slim
+FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
diff --git a/README.md b/README.md
index 3f49da446..560d1bb42 100644
--- a/README.md
+++ b/README.md
@@ -121,13 +121,13 @@ cd TradingAgents
Create a virtual environment in any of your favorite environment managers:
```bash
-conda create -n tradingagents python=3.12
+conda create -n tradingagents python=3.13
conda activate tradingagents
```
Or with [uv](https://docs.astral.sh/uv/):
```bash
-uv venv --python 3.12
+uv venv --python 3.13
source .venv/bin/activate
```