1
0
Files
electrum/contrib/osx/notes_for_arm.md
SomberNight 6c05de6fb9 osx arm notes: simplify
note: `pip install ".[crypto]"` needs quotes on macOS, at least in the default `zsh` shell.
The quotes are not needed on Ubuntu using bash, or on Windows using powershell.
```
user@users-iMac electrum % python3 -m pip install --user -e .[crypto]
zsh: no matches found: .[crypto]
```
2022-04-08 20:22:50 +02:00

886 B

Notes on running Electrum from source on ARM-based Macs (Apple M1 OSX)

Development version (git clone)

  1. Check out the code from GitHub:
$ git clone https://github.com/spesmilo/electrum.git
$ cd electrum
$ git submodule update --init

Run install (this should install most dependencies):

$ python3 -m pip install --user -e ".[crypto]"
  1. Install libsecp256k1
$ contrib/make_libsecp256k1.sh
  1. pip install pyqt5 would work on intel x86, however there are no prebuilt wheels on PyPI for M1. As a workaround, we can install it from brew:
$ brew install pyqt5
$ echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.zshrc
$ echo 'export PATH="/opt/homebrew/opt/pyqt@5/5.15.4_1/bin:$PATH"' >> ~/.zshrc
$ source ~/.zshrc

Try it in python to ensure it works:

$ python3
>>> import PyQt5
  1. Run electrum:
$ ./run_electrum