Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Then navigate to the directory and follow the individual module instructions to

## Setting Up the Development Environment

This project is developed using Python v3.10. For a complete list of Python dependency packages, see [requirements.txt](requirements.txt).
This project is developed using Python v3.12. For a complete list of Python dependency packages, see [requirements.txt](requirements.txt).

Official documentation for key dependencies is as follows:

Expand All @@ -63,10 +63,21 @@ rm -rf ~/miniconda3/miniconda.sh
After installation, it is recommended to create a new Python virtual environment named `langchain`.

```shell
conda create -n langchain python=3.10
conda create -n langchain python=3.12

# Activate the environment
conda activate langchain
conda activate langchain
```

Alternatively, you can use Python's built-in venv:

```shell
python3.12 -m venv venv

# Activate the environment
source venv/bin/activate # On macOS/Linux
# or
venv\Scripts\activate # On Windows
```

This environment needs to be activated each time before use.
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ git clone https://github.com/DjangoPeng/openai-quickstart.git

## 搭建开发环境

本项目使用 Python v3.10 开发,完整 Python 依赖软件包见[requirements.txt](requirements.txt)。
本项目使用 Python v3.12 开发,完整 Python 依赖软件包见[requirements.txt](requirements.txt)。

关键依赖的官方文档如下:

Expand All @@ -61,10 +61,21 @@ rm -rf ~/miniconda3/miniconda.sh
安装完成后,建议新建一个 Python 虚拟环境,命名为 `langchain`。

```shell
conda create -n langchain python=3.10
conda create -n langchain python=3.12

# 激活环境
conda activate langchain
conda activate langchain
```

或者使用 Python 内置的 venv:

```shell
python3.12 -m venv venv

# 激活环境
source venv/bin/activate # macOS/Linux
# 或
venv\Scripts\activate # Windows
```

之后每次使用需要激活此环境。
Expand Down
Loading