Installation issues on Apple M1 Pro.
kaliaanup opened this issue · 1 comments
kaliaanup commented
Hi I am trying to install this on my Apple M1 Pro. I am getting the following error. Tried installing rustc but it did not help. Any workaround is appreciated.
running build_ext
running build_rust
info: syncing channel updates for 'nightly-2020-05-14-aarch64-apple-darwin'
info: latest update on 2020-05-14, rust version 1.45.0-nightly (75e1463c5 2020-05-13)
error: target 'aarch64-apple-darwin' not found in channel. Perhaps check https://doc.rust-lang.org/nightly/rustc/platform-support.html for available targets
error: can't find Rust compiler
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.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
kaliaanup commented
Never mind. I figured it out. Made several changes to the files under the model folder to align it with the latest version of the Transformer.