Closed JackObid closed 8 months ago
This eventual worked RUN pip install --upgrade pip && pip install setuptools==69.0.1 RUN pip install tiktoken==0.5.2
Versions of tiktoken before 0.5.2 did not build Python3.12 wheels, see https://github.com/openai/tiktoken/blob/main/CHANGELOG.md#v052 If you want to use older versions with Python 3.12, you'll need to compile from sdist, which will require a rust compiler as the error message above is telling you.
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tiktoken Failed to build tiktoken ERROR: Could not build wheels for tiktoken, which is required to install pyproject.toml-based projects