# Compatibility of transformers version 4.11.1 with Python 3.11

**URL:** <https://discuss.huggingface.co/t/compatibility-of-transformers-version-4-11-1-with-python-3-11/57397>\
**Category:** 🤗Transformers\
**Created:** [October 4, 2023, 3:28pm UTC](https://discuss.huggingface.co/t/compatibility-of-transformers-version-4-11-1-with-python-3-11/57397 "2023-10-04T15:28:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manujmalik](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@manujmalik](https://discuss.huggingface.co/u/manujmalik)\
**Post date:** [October 4, 2023, 3:28pm UTC](https://discuss.huggingface.co/t/compatibility-of-transformers-version-4-11-1-with-python-3-11/57397/1 "2023-10-04T15:28:34Z")

</div>

I have an issue, while installing transformer version 4.11.1 library. Has anyone encountered it before? It seems like Python library error to me …

```auto
    Collecting transformers==4.11.1
 Downloading transformers-4.11.1-py3-none-any.whl (2.9 MB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 15.8 MB/s eta 0:00:00
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (3.12.4)
Collecting huggingface-hub>=0.0.17 (from transformers==4.11.1)
 Downloading huggingface_hub-0.17.3-py3-none-any.whl (295 kB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 295.0/295.0 kB 23.4 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (1.23.5)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (23.1)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (6.0.1)
Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (2023.6.3)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (2.31.0)
Collecting sacremoses (from transformers==4.11.1)
 Downloading sacremoses-0.0.53.tar.gz (880 kB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 880.6/880.6 kB 32.9 MB/s eta 0:00:00
 Preparing metadata (setup.py) ... done
Collecting tokenizers<0.11,>=0.10.1 (from transformers==4.11.1)
 Downloading tokenizers-0.10.3.tar.gz (212 kB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.7/212.7 kB 23.6 MB/s eta 0:00:00
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
 Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers==4.11.1) (4.66.1)
Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.0.17->transformers==4.11.1) (2023.6.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.0.17->transformers==4.11.1) (4.5.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.11.1) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.11.1) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.11.1) (2.0.5)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->transformers==4.11.1) (2023.7.22)
Requirement already satisfied: six in /usr/local/lib/python3.10/dist-packages (from sacremoses->transformers==4.11.1) (1.16.0)
Requirement already satisfied: click in /usr/local/lib/python3.10/dist-packages (from sacremoses->transformers==4.11.1) (8.1.7)
Requirement already satisfied: joblib in /usr/local/lib/python3.10/dist-packages (from sacremoses->transformers==4.11.1) (1.3.2)
Building wheels for collected packages: tokenizers, sacremoses
 error: subprocess-exited-with-error
 
 × Building wheel for tokenizers (pyproject.toml) did not run successfully.
 │ exit code: 1
 ╰─> See above for output.
 
 note: This error originates from a subprocess, and is likely not a problem with pip.
 Building wheel for tokenizers (pyproject.toml) ... error
 ERROR: Failed building wheel for tokenizers
 Building wheel for sacremoses (setup.py) ... done
 Created wheel for sacremoses: filename=sacremoses-0.0.53-py3-none-any.whl size=895241 sha256=36b87a524e130fe23deb468911fe2184cc60a8e23d4eca52a6d7abce180dab62
 Stored in directory: /root/.cache/pip/wheels/00/24/97/a2ea5324f36bc626e1ea0267f33db6aa80d157ee977e9e42fb
Successfully built sacremoses
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

```
