When attempting to install tiktoken in a the python:3.11-slim Docker container running in Docker for Mac, I get an error about a missing rust compiler( error: can't find Rust compiler...).
I'm not familiar with the Rust toolchain but I believe it should be possible to compile for aarch64 by add the following:
rustup target add aarch64-unknown-linux-gnu in pyproject.toml.
As a workaround, I'm just building from source, but it'd be super nice to have pre-built wheels.
My workaround:
export PATH="/root/.cargo/bin:$PATH"
apt-get update && apt-get install -y --no-install-recommends curl gcc && curl https://sh.rustup.rs -sSf | sh -s -- -y && apt-get install --reinstall libc6-dev -y
When attempting to install
tiktokenin a thepython:3.11-slimDocker container running in Docker for Mac, I get an error about a missing rust compiler(error: can't find Rust compiler...).I'm not familiar with the Rust toolchain but I believe it should be possible to compile for
aarch64by add the following:rustup target add aarch64-unknown-linux-gnuin pyproject.toml.As a workaround, I'm just building from source, but it'd be super nice to have pre-built wheels.
My workaround: