forked from murbard/pytezos
-
Notifications
You must be signed in to change notification settings - Fork 39
M1 Pro pip installation error #282
Copy link
Copy link
Open
Labels
👋 communityReported or suggested by our awesome usersReported or suggested by our awesome users🚢 ci/cdDockerfiles, GitHub Actions and stuff like thatDockerfiles, GitHub Actions and stuff like that🤷 not a bugFramework behaves as expectedFramework behaves as expected
Metadata
Metadata
Assignees
Labels
👋 communityReported or suggested by our awesome usersReported or suggested by our awesome users🚢 ci/cdDockerfiles, GitHub Actions and stuff like thatDockerfiles, GitHub Actions and stuff like that🤷 not a bugFramework behaves as expectedFramework behaves as expected
I had a hard time installing onto M1 machine. It always results in
secp256k1andgmpcan't find either include or lib paths. Even if I have them installed usingbrewaccording to documentation.The only way I managed to install
pytezosit 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 findlibsodiumwhen executing pytest.It all seems to be related to the fact that
brewinstalls 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.