safetensors: Unable to install saftetensors on MacBook m1

System Info

System - Macbook M1 OS - Sonoma 14.0 Python - 3.9.0

Information

  • The official example scripts
  • My own modified scripts

Reproduction

pip install safe tensors

Screenshot 2023-08-17 at 11 13 13 PM

Expected behavior

Should install properly

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 26

Most upvoted comments

Maybe not: https://github.com/huggingface/safetensors/actions/runs/5900779459/job/16006035825#step:7:129

In the mean time

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install setuptools-rust
pip install safetensors

Should work.

For anyone that had issues @casperdcl could you try pip install safetensors==0.3.3.post1 I had to rewrite everything to get those builds actually finishing.

It’s a yanked version for now, but at least it should prove it could work on currently missing platforms.

Also closing this in favor of https://github.com/huggingface/safetensors/issues/346 given it’s working on M1

I think this is just an issues with 0.3.3. I was able to access binaries for 0.3.2 via pip so am happy with that for now

Ok I finally managed to upload some prebuilt binaries usable with pip for conda…

safe tensors installed after upgrading to python 3.11