Skip to content

Commit 5a927d1

Browse files
committed
Document Python 3.12 environment support
1 parent 570f4bf commit 5a927d1

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,17 @@ Below are the steps for quick installation and datasets preparation.
9898
### 💻 Environment Setup
9999

100100
We highly recommend using conda to manage your python environment.
101+
OpenCompass supports Python 3.12 for regular and full installation. If
102+
your evaluation depends on `pyext`-backed code execution datasets, use
103+
Python 3.10 instead: `pyext==0.7` is skipped on Python >=3.11 because it
104+
relies on `inspect.getargspec`, which was removed in Python 3.11.
105+
Without `pyext`, APPS (`apps`, `apps_mini`), TACO, and LiveCodeBench Code
106+
Generation are unavailable.
101107

102108
- #### Create your virtual environment
103109

104110
```bash
105-
conda create --name opencompass python=3.10 -y
111+
conda create --name opencompass python=3.12 -y
106112
conda activate opencompass
107113
```
108114

requirements/extra.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ dingo-python==1.5.0
1313
# IFBench
1414
emoji
1515
# Icl topk retriever
16-
faiss_gpu==1.7.2; python_version < "3.10"
1716
faiss-gpu==1.14.3; python_version >= "3.10"
17+
faiss_gpu==1.7.2; python_version < "3.10"
1818
# Humaneval, Humaneval X
1919
-e git+https://github.com/open-compass/human-eval.git#egg=human-eval
2020
# IFEval

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def warn_for_skipped_pyext():
4646
'depends on inspect.getargspec, which was removed in '
4747
'Python 3.11. Code execution evaluation for these '
4848
'datasets will be unavailable: APPS (apps, apps_mini), '
49-
'TACO, and LiveCodeBench Code Generation.',
50-
RuntimeWarning)
49+
'TACO, and LiveCodeBench Code Generation.', RuntimeWarning)
5150

5251
def parse_line(line):
5352
"""Parse information from a line in a requirements text file."""

0 commit comments

Comments
 (0)