From 6a3e8fd9d8f0fdee7b0057650fde75ff53051593 Mon Sep 17 00:00:00 2001 From: Hari Limaye Date: Fri, 22 Dec 2023 18:07:17 +0000 Subject: [PATCH] docs: update ARM64 MacOS installation instructions --- docs/installation.md | 21 ++++----------------- install_dependencies_apple_silicon.sh | 11 +++++++++++ requirements_apple_silicon.txt | 9 +++++++++ 3 files changed, 24 insertions(+), 17 deletions(-) create mode 100755 install_dependencies_apple_silicon.sh create mode 100644 requirements_apple_silicon.txt diff --git a/docs/installation.md b/docs/installation.md index 6ab2562c96..314c26c44d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -136,26 +136,13 @@ And now install the dependencies ### MacOS (ARM) -If you're running MacOS on one of the new ARM chips, the process is more complex. You'll need Homebrew and the Apple XCode Commandline Development Tools, configured for ARM. Doing that is beyond the scope of this document, type `homebrew apple xcode command line tools` into your favourite search engine. Once installed and configured, install *cython*: +If you're running MacOS on one of the new ARM chips, the process is more complex. You'll need Homebrew and the Apple XCode Commandline Development Tools, configured for ARM. Doing that is beyond the scope of this document, type `homebrew apple xcode command line tools` into your favourite search engine. Once installed and configured, run installation script: ``` -(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install cython --no-use-pep517 -``` - -Then the key dependencies - -``` -(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install "numpy>=1.19.4,<1.24.0" --no-use-pep517 -(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install scipy --no-use-pep517 -(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install pandas==1.0.5 --no-use-pep517 -(3.8.16) $ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=12.6 python -m pip install statsmodels==0.12.2 --no-use-pep517 -``` - -Then the remaining dependencies - -``` -(3.8.16) $ pip install -r requirements.txt +chmod u+x install install_dependencies_apple_silicon.sh +./install_dependencies_apple_silicon.sh ``` +Note: this may (unfortunately) become out of date and require some tweaking. ### Check dependencies, all OSs diff --git a/install_dependencies_apple_silicon.sh b/install_dependencies_apple_silicon.sh new file mode 100755 index 0000000000..f84f9e51ba --- /dev/null +++ b/install_dependencies_apple_silicon.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Cython 3.0.0 is not supported by pandas 1.0.5 +python -m pip install "cython<3.0.0" wheel +python -m pip install pyyaml==5.4.1 --no-build-isolation +python -m pip install "numpy>=1.19.4,<1.24.0" --no-use-pep517 +python -m pip install scipy --no-use-pep517 +python -m pip install pandas==1.0.5 --no-use-pep517 +python -m pip install statsmodels==0.12.2 --no-use-pep517 + +pip install -r requirements_apple_silicon.txt diff --git a/requirements_apple_silicon.txt b/requirements_apple_silicon.txt new file mode 100644 index 0000000000..e097efc27a --- /dev/null +++ b/requirements_apple_silicon.txt @@ -0,0 +1,9 @@ +matplotlib>=3.0.0 +pymongo==3.11.3 +arctic==1.79.2 +ib-insync==0.9.86 +psutil==5.6.6 +pytest>6.2 +Flask>=2.0.1 +Werkzeug>=2.0.1 +PyPDF2>=2.5.0