Skip to content

Instantly share code, notes, and snippets.

@jellomoat
Last active July 19, 2022 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jellomoat/2c0dbbf861f9e9da291ec2cf90a6d226 to your computer and use it in GitHub Desktop.
Save jellomoat/2c0dbbf861f9e9da291ec2cf90a6d226 to your computer and use it in GitHub Desktop.
Parsons Install on MBP w/ M1

Installing Parsons on a Macbook with an M1 Chip

This is an approach that worked for me on a Macbook Air (M1, 2020) running MacOS Monterey.

Step 1 - Install miniconda or conda:

Miniconda: https://docs.conda.io/en/latest/miniconda.html

Step 2 - Create a new environment specifying Python 3.9

Ref here: https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html#managing-envs
Ref here: grpc/grpc#28387 (comment)
conda create --name your_env python=3.9

Step 3 - Activate your virtual environment

conda activate your_env

Step 3 - Use pip to install grpcio after specifying some GRPC variables

Ref here: https://stackoverflow.com/a/68137855
Ref here: grpc/grpc#25082 (comment)
Note: You may need to install homebrew and pip first.

export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
pip install grpcio

Step 4 - Use pip to install parsons

pip install parsons

Step 5 - Test that the installation worked

I used Option 2 from the Parsons Installation Guide (https://parsons.pubpub.org/installation)

(your_env) your_machine_name ~ % python
Python 3.9.12 (main, Jun  1 2022, 06:34:44) 
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from parsons import Table
>>> 

Hopefully that works! 🤞

A few other notes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment