I have tried installing the rust
regex_3_regex.c(1267): error C2143: syntax error: missing ‘)’ before ‘’
regex_3_regex.c(1267): error C2143: syntax error: missing ‘{’ before '’
regex_3_regex.c(1267): error C2371: ‘Py_ssize_t’: redefinition; different basic types
C:\Users\simon\AppData\Local\Programs\Python\Python313\include\pyconfig.h(202): note: see declaration of ‘Py_ssize_t’
regex_3_regex.c(1267): error C2146: syntax error: missing ‘;’ before identifier ‘text_pos’
regex_3_regex.c(1267): error C2059: syntax error: ‘)’
regex_3_regex.c(1267): fatal error C1003: error count exceeds 100; stopping compilation
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe’ failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for regex
Building wheel for tiktoken (pyproject.toml) … error
error: subprocess-exited-with-error
× Building wheel for tiktoken (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [134 lines of output]
error: the configured Python interpreter version (3.13) is newer than PyO3’s maximum supported version (3.12)
= help: please check if an updated version of PyO3 is available. Current version: 0.20.3
= help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
warning: build failed, waiting for other jobs to finish…
error: cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib --
failed with code 101
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tiktoken
Failed to build regex tiktoken
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (regex, tiktoken)