Skip to content

Instantly share code, notes, and snippets.

@cmutel
Created July 4, 2024 15:00
Show Gist options
  • Save cmutel/85bf21db70094ded0b1bd647924c21ff to your computer and use it in GitHub Desktop.
Save cmutel/85bf21db70094ded0b1bd647924c21ff to your computer and use it in GitHub Desktop.
MacOS ARM instructions on installing AB from PyPI dependencies
# Use MacOS built-in Python because it is universal
# i.e. works on both ARM and X64 via Rosetta
# Have to trick it into thinking we are x64 as pyside is not built for ARM
which python3
arch -x86_64 python3 -m venv virtualenvs/ab_25_pypi_rosetta
source virtualenvs/ab_25_pypi_rosetta
arch -x86_64 pip install arrow networkx numpy pandas pint pyperclip pyside2 salib seaborn PyQtWebEngine ecoinvent_interface bw_graph_tools bw_simapro_csv
arch -x86_64 pip install --pre bw2data bw2calc bw2io bw2analyzer
wget https://github.com/cauldron/activity-browser/archive/refs/heads/brightway25.zip
unzip brightway25.zip
cd activity-browser-brightway25/
arch -x86_64 pip install --no-deps .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment