M1 Pro pip installation error #282
Labels
🚢 ci/cd
Dockerfiles, GitHub Actions and stuff like that
👋 community
Reported or suggested by our awesome users
🤷 not a bug
Framework behaves as expected
I had a hard time installing onto M1 machine. It always results in
secp256k1
andgmp
can't find either include or lib paths. Even if I have them installed usingbrew
according to documentation.The only way I managed to install
pytezos
it is by adding some environment variables with paths like so:This was enough to install, but no enough to run
pytest
.I had to add
LD_LIBRARY_PATH=/opt/homebrew/lib/
to my env so it can findlibsodium
when executing pytest.It all seems to be related to the fact that
brew
installs all ARM libraries to/opt/homebrew/
and x64 to/usr/local/
. And/usr/local/
is always in the default paths for C compiler while/opt/homebrew/
is not.I am confident the same result can be achieved more elegantly. That's why I'm not sure if it is wise to include this to the documentation yet.
The text was updated successfully, but these errors were encountered: