This is an approach that worked for me on a Macbook Air (M1, 2020) running MacOS Monterey.
Miniconda: https://docs.conda.io/en/latest/miniconda.html
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
conda activate your_env
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
pip install parsons
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
>>>
A few other notes:
- You might be able to use virtualenv as long as you specify Python v3.9.
- Could be worthwhile to look into creating containers/build environments using something like Docker to automate some of these processes. One resource here: https://sweetcode.io/using-docker-reproducible-build-environments/